O'Reilly logo
  • Lucy Little thinks this is interesting:

ow we are in a position to create microposts in the same way we created users in Section 2.2.1. As you might guess, the scaffold generator has updated the Rails routes file with a rule for Microposts resource, as seen in Listing 11.21.11 As with users, the map.resources :microposts routing rule maps Micropost URLs to actions in the Microposts controller, as seen in Table 2.3.


Cover of Ruby on Rails™ 2.3 Tutorial: Learn Rails by Example


Run the command "rake routes" to get a list of the commands in Table 2.3