Hi I\'m stuck with a little bit of rails routing, How should this look in rails 3 routing?: map.resources :books开发者_Go百科 do |book|
i want to read all 开发者_如何学Gorecords of my table . this is my code Controller: def list @vorlesung=Vorlesung.find(:all)
This has been fixed. I guess I had left :method => put in the form helper when I copied it from another view I had written. False alarm.
I have a lot of courses in my website. I have a \"go to course\" form. When user inputs a valid course name, I successfully redirect that user to that course page.
I get confused at Rails pluralising and camelcasing. Especially with my long but clear names. I have a User model and an Account model. I also have a user_to_account_log_history model and controller
I am trying to make some clean URLs in a Rails3 application I am working on... but I am having a hard time understanding how to (or if I even should) customise my routes to make this work.
I am new to Ruby On Rails and need some help impleme开发者_如何学运维nting REST protocol. Whenever you do a POST on REST you get a URL back e.g. http://my-site.com/id/1
This is a long question so i apologize if it takes a while to grasp. I\'ll keep it simple as possible.
I\'m fairly new to Rails and find myself confused by the routing config. In my project I have 2 models: Product and Category. Product belongs_to Category, Category has_many Product.
I am currently setting up routes in a Rails 3 application, and would appreciate it if someone could point me in the right direction.