Displaying 2 results from an estimated 2 matches for "content_list_faq".
2006 Nov 04
0
Problem with edge rails, controller namespaces and routes
...following class
definition inside ''app/controllers/admin/content_controller.rb'':
class Admin::ContentController < ApplicationController
....
end
and then in my routes file, I have:
map.with_options(:controller => ''admin/content'') do |content|
content.content_list_faq
''admin/content/faq/list/:section'', :action => ''list_faq''
end
now, this worked perfectly in Rails 1.1.6, but as soon as I upgraded
to edge, I started getting the following error from one of my views:
content_list_faq_url failed to generate from {:action=>...
2006 Nov 04
0
Question about named routes - getting "No url can be generated for the hash"
...ntroller.rb.
I also have the following routes defined:
# Content Routes
map.with_options(:controller => ''admin/content'') do |content|
content.content_index ''admin/content'',
:action => ''index''
content.content_list_faq ''admin/content/faq/list'',
:action => ''list_faq''
content.content_edit_faq
''admin/content/faq/edit/:id'', :action => ''edit_faq''
content.content_new_faq ''admin/co...