rails 3.2.6 routing error
I just did exactly as you wrote for a new Rails 3.2.6 app, and it worked fine for me. The only step you missed was to run rake db:migrate
after your scaffold generation. Try that and see if it works.
Route error in rails demo app
Read error message. It says you do not have any routes. Open the recommended in error message materials and read those.
add
root to: 'greet#index'
to routes.
Recommendation: always check error message carefully, Rails are smart enough to provide you with fully helpful hints in those.
Routing with rails 3.2.1
A member route will require an ID, because it acts on a member. A collection route doesn't because it acts on a collection of objects.
map.resources :users, :collection => { :customers_list=> :get }
map.resources :users, :member => { :inactive=> :post }
It is treated as /users/1;inactive=> [:action => 'inactive', :id => 1]
Hartl Ruby on Rails Tutorial - Chapter 8 failed test
In your routes.rb
get 'login' => 'sessions#new'
get 'login' => 'sessions#create'
that looks weird. I guess it should be
get 'login' => 'sessions#new'
post 'login' => 'sessions#create'
Related Topics
{|_, E| E.Length>1} What Is the Use of Underscore ( _ ) in Ruby
My Classes Can't Use Shoes Methods Like Para
Ruby on Rails - Error Making New App (Rb:55:In 'Require')
Using Devise for More Than One Models in Rails App
Metasploit Induction of Bundle and Rake
Could Not Find 'Cocoapods' (>= 0.A) Among 48 Total Gem(S) (Gem::Missingspecerror)
How to Remove the Extra Double Quote
Ruby Ternary Operator and Method Call
Get Underlined Text with Markdown
Implementing Dry-Run in Ruby Script
Editing JSON Array Contents in Ruby
Understanding Usage of Symbols in Routes.Rb Files
Devise 'Find_First_By_Auth_Conditions' Method Explanation