Hi guys,
i have a model named "project" and i have created routes namespace:
  namespace :project do
    resources :inprocess do
      get 'assign', :on => :collection
    end
    resources :suggested do
      get 'select_list', :on => :collection
      post 'select_list', :on => :collection
    end
   resources :finished
  end

One of the routes that i get is new_project_suggested (which is
working fine with the new action) and the edit_project_suggested which
i get an error.
I am calling this action in the "select_list" view:

<% @suggested.each do |s| %>
  <tr><td><%= link_to "#{s.title}", edit_project_suggested_path(s)
%><td></tr>
  <% end %>

The strange is that it does go to the url 
http://127.0.0.1:3000/project/suggested/21/edit
but i get the error "Routing Error uninitialized constant
ProjectController".

The actions in the project/suggested controller are:
  def select_list
    @suggested = Project.find_all_by_status("suggested")
  end

  def edit
    @project = Project.find(params[:id])
  end

Can you help me with this?? It does not make sense! :/

Thank u in advance

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to