On Aug 22, 2:18 pm, Ezequiel Schwartzman <li...@ruby-forum.com> wrote:
> I've seen guides for Rspec that say to use rspec_model script, but in
> Rails 3 you don't have the script folder, and the only Rspec generator
> that I have is rspec:install.
>
> The other way is generate them automatically when scaffolding, but I
> already have the model, controller and view files created =/

  rails generate model my_model_that_already_exists --skip-migration

It will ask you if you want to overwrite the existing model file. Say
no.

HTH,
David


>
> --
> Posted viahttp://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-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.

Reply via email to