search for: forum_thread

Displaying 1 result from an estimated 1 matches for "forum_thread".

2010 May 23
1
[Rails 3] Trouble with named routes and form_for
Hi guys, I''m having trouble getting named routes and form_for to play nicely in quite the way I would expect. Here''s a quick summary of what I''ve got going on: Named route: resources :thread, :class_name => "forum_thread" Controller name: forum_thread_controller Model object: forum_thread In both my new and edit actions I''m setting up an @thread variable: @thread = ForumThread.new 1.) My first attempt at writing the form_for looked something like this: <%= form_for @thread do |f| %> .....