Hello!!! I'm using namespace:
namespace :freelances do
resource :profiles
end
When I use freelance/profiles/new the form works normally:
<%=simple_form_for [:freelances,@profile] do |f| %>
<%=f.input :name %>
<%=f.input :phone %>
<%=f.input :cell_phone %>
<%=f.input :experience, :as => :text, :input_html => { :rows => 4 } %>
<%=f.association :categories,:as => :check_boxes %>
<%=f.submit %><br/>
<%end%>
But when I want to edit some profile it's not works
undefined method `freelances_profile_path' for #<#<Class:0xa08613c>:0xa90ccc0>
Extracted source (around line #1):
1: <%=simple_form_for [:freelances,@profile] do |f| %>
2: <%=f.input :name %>
3: <%=f.input :phone %>
4: <%=f.input :cell_phone %>