On 5 June 2015 at 22:21, kenatsun <kenat...@gmail.com> wrote:
> All of the changes were to files that specifically mentioned the model's
> attributes (aka the table's columns), and all the changes consisted of
> adding a mention of the new column.  For example, the auto-edit of
> show.json.jbuilder when I added the size attribute changed
>
> json.extract! @toy, :id, :name, :color, :price, :created_at, :updated_at
>
> to
>
> json.extract! @toy, :id, :name, :color, :price, :size, :created_at,
> :updated_at

Did the generator add the validations for that attribute?

Did it add the code in the toy.rb that implements the business logic
involving that attribute?

Did it add the attribute to the views that do not just consist of the
simplistic tables and so on generated by the controller?

Did it add the required tests to make sure that all the uses of the
attribute are correct?

So is it worth the hassle of messing about with the generator just for
the few minor changes that it did make?

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtmE3X0KHh1zhnxhFx7iUYOFnDtMMFM8Ej9ey_H%3DMHSaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to