tuti plain wrote:
> Hi everyone,
> 
>   I am trying to set up a controller and a view manually, without the
> aid of scaffolding (though I am using a scaffolded model as reference).
> 
> I have set up my controller like this:
> 
> class RecetasController < ApplicationController
>   def index
>     respond_to  do |format|
>       format.html #index.html.erb
>     end
>   end
> end
> 
> I have created a single file named index.html.erb inside
> app/views/receta.  So far in only has a few HTML lines.  When I access
> http://localhost:3000/recetas, I get this message on my browser:
> 
> "Missing template recetas/index.erb in view path app/views"
> 
> What gives?  Scaffolded models generate .html.erb files and they work
> right!  So I go ahead and change my view to be named index.erb.  I still
> get the same error message!  What am I missing?

Could you please give the log printed in the webrick ?

Actually I faced this error during the time of placing wrong code inside 
environment.rb file.

Thanks
-- 
Posted via http://www.ruby-forum.com/.

-- 
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-t...@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.

Reply via email to