Did you run 'rake db:migrate' after you created the new scaffold?
Also, if you did not do it yet, you will also have to run 'rake
db:create' to create the db before you run the migration.

On 7/4/10, Adriano Dias da Silva <ti.adrian...@gmail.com> wrote:
> Good night.
>
> I am starting in linux and development in Ruby.
> I have not much expertise in this area.
> I'm using ruby + rails + postgres + RadRails.
>
> I generated a CRUD for testing as follows below:
> scaffold Teste nome:string login:string senha:string
>
> When I run this application showing the following error:
>
> NameError in Testes#index
>
> Showing app/views/testes/index.html.erb where line #24 raised:
>
> undefined local variable or method `new_teste_path' for
> #<ActionView::Base:0xb6f93560>
>
> Extracted source (around line #24):
>
> 21:
> 22: <br />
> 23:
> 24: <%= link_to 'New teste', new_teste_path %>
>
> RAILS_ROOT: /home/adriano/Aptana Studio Workspace/teste
> Application Trace | Framework Trace | Full Trace
>
> app/views/testes/index.html.erb:24
> app/controllers/testes_controller.rb:7:in `index'
> -e:2:in `load'
> -e:2
>
> Please help me solve this problem.
>
> Thanks ...
>
> Best Regards
> Adriano Dias da Silva
>
> --
> 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.
>
>

-- 
Sent from my mobile device

-- 
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