top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Where to add action when getting started with rails

0 votes

I'm a complete noob when it comes to Rails, and Ruby for that matter. I've been trying to make my way through the Getting Started with Rails page on the RoR Guides site

In section 5.7 of that page it says the following:

If you submit the form again now, Rails will complain about not finding the show action. That's not very useful though, so let's add the show action before proceeding.

post GET /posts/:id(.:format) posts#show

The problem I'm having is I don't know where to put this line of code. Does it go in /config/routes.rb? If so, where?

posted Jul 24, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Rails guides are merely guides to using various features of rails, and not a guide to learning rails from a beginner's POV. For that, I highly recommend, which is a free online book.

answer Jul 24, 2013 by anonymous
Similar Questions
+2 votes

I need an Idea of how to put a google map in my application, I have field and I want to fill it with address and I want a map in the next line showing the address that I entered in my field......

+1 vote

I have just started with rails. I am making a attendance web app. I want to insert student attendance into attendances table and unable to do it as the form just inserts only last entry of the form. Student table and Attendances table have associations (has_many,belongs_to).

Please let me know how the form should be and controller API should look like.

+1 vote

mail(:to =>, :subject => "Hello World!", :from => "")

+1 vote

I am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0. Getting the below error when trying to install Rails using rubyGems.

gem install rails --include-dependencies
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies