Ruby on Rails Tuesday, April 26, 2016

On 26 April 2016 at 13:13, Naveed Alam <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1183079:
>> On 26 April 2016 at 05:10, Naveed Alam <lists@ruby-forum.com> wrote:
>>> Yes I have a Configuration Model/Controler below are the links to
>>> controller, and model
>>
>> In that case your simplest solution may be to change the name of the
>> model.
>>
>> Colin
>
> If I change the model name, then I have to make a lot of changes in
> many other Controllers and where its been called
> and the migration too.
> so I get a lot of error messages.

A few global search and replace changes should do it. You don't need
to change the controller or table name if you don't want to. I assume
you have the source under a source control system such as git, and
that you have good automated test coverage, which will make sure you
catch everything.

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+unsubscribe@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%3D0gLttDn-WU6eL%2BKEqhJ2bgFLcw287NWfToCBh6wp29oaG-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment