Re: [Rails] No route matches "/home/index" with {:method=>:get}

2011-04-17 Thread Chris Kottom
Also verify that you are _actually_ using Rails 2.3.8.  Very basic check, I
know, but routing syntax is different in Rails 3, and I don't believe older
syntax is supported.

On Sun, Apr 17, 2011 at 8:59 AM, Jatin kumar wrote:

>
>
> On Sun, Apr 17, 2011 at 6:46 AM, amrit pal pathak <
> amritpalpath...@gmail.com> wrote:
>
>> I followed a tutorial to learn ruby on rails at
>> http://guides.rubyonrails.org/v2.3.8/getting_started.html
>> After creating a view and controller as  "script/generate controller
>> home index" and then i changed the contents of app/view/home/
>> index.html.erb file according to tutorial into one line as
>> Hello, Rails!
>>
>> Now i started the server as script/
>> server(successfully started) and when i navigate to localhost:3000/
>> home/index, i got a error message which says
>>
>> ROUTING ERROR
>> No route matches "/home/index" with {:method=>:get}
>>
>> Remove the /public/index.html file in your app directory.
> Check to see if you have a route for root in your routes.rb file.
> If not, make it
> *map.root :controller => "home"*
> If you still have problems, post the contents of your routes file.
>
>> Please someone help to resolve.
>>
>> Thanks
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>  --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread Jatin kumar
On Sun, Apr 17, 2011 at 6:46 AM, amrit pal pathak  wrote:

> I followed a tutorial to learn ruby on rails at
> http://guides.rubyonrails.org/v2.3.8/getting_started.html
> After creating a view and controller as  "script/generate controller
> home index" and then i changed the contents of app/view/home/
> index.html.erb file according to tutorial into one line as
> Hello, Rails!
>
> Now i started the server as script/
> server(successfully started) and when i navigate to localhost:3000/
> home/index, i got a error message which says
>
> ROUTING ERROR
> No route matches "/home/index" with {:method=>:get}
>
> Remove the /public/index.html file in your app directory.
Check to see if you have a route for root in your routes.rb file.
If not, make it
*map.root :controller => "home"*
If you still have problems, post the contents of your routes file.

> Please someone help to resolve.
>
> Thanks
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amritpal pathak
I followed a tutorial to learn ruby on rails at
http://guides.rubyonrails.org/v2.3.8/getting_started.html
After creating a
view and controller as  "script/generate controller home index" and then i
changed the contents of app/view/home/index.html.erb file according to
tutorial into one line as
Hello, Rails!

Now i started the server as script/server(successfully started) and when i
navigate to localhost:3000/home/index, i got a error message which says

ROUTING ERROR
No route matches "/home/index" with {:method=>:get}

Please someone help to resolve.

Thanks

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amrit pal pathak
I followed a tutorial to learn ruby on rails at
http://guides.rubyonrails.org/v2.3.8/getting_started.html
After creating a view and controller as  "script/generate controller
home index" and then i changed the contents of app/view/home/
index.html.erb file according to tutorial into one line as
 Hello, Rails!

 Now i started the server as script/
server(successfully started) and when i navigate to localhost:3000/
home/index, i got a error message which says

ROUTING ERROR
No route matches "/home/index" with {:method=>:get}

Please someone help to resolve.

Thanks

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amrit pal pathak
I followed a tutorial to learn ruby on rails at
http://guides.rubyonrails.org/v2.3.8/getting_started.html
After creating a view and controller as  "script/generate controller
home index" and then i changed the contents of app/view/home/
index.html.erb file according to tutorial into one line as
 Hello, Rails!

 Now i started the server as script/
server(successfully started) and when i navigate to localhost:3000/
home/index, i got a error message which says

ROUTING ERROR
No route matches "/home/index" with {:method=>:get}

Please someone help to resolve.

Thanks

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.