I'm a bit confused on how this works. My form is sending to a weird
location. Here's my situation:
I have a model: youtube.rb
I have a controller called: youtube_editor_controller.rb
In my youtube_editor view, i have new.html.erb, where I'm trying to
make a form for the var I created in my youtube_editor_controller.rb:
def new
@video_new = Youtube.new
end
SO, I use the form_for @video_new, but when I view the page, the form
action="/youtubes". Why is it doing that? Did I define "youtubes" or
is it just pluralizing my model name? Where does it decide which
controller to go to?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---