List Info

Thread: Migration Breaking and a strange error




Migration Breaking and a strange error
user name
2007-12-16 00:30:50
Hi All,

I am stuck in a rake migrate here, can any one help me?

Here's how the problem goes;
we added a new table in the application,our rake broke when
we
migrated the new tables. We got the following error:

oepfotrex [~/railsapp/config]# rake db:migrate
(in /home/coepfo/railsapp)

   
************************************************************
*****
    * config.breakpoint_server has been deprecated and has
no effect.
*
************************************************************
*****

rake aborted!
undefined method `template_root' for
ActionController::Base:Class

We figured out the difference in rails version but we are
not able to
figure out the problem.

We are deploying the application in the production
environment

Thanks

Saurabh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Migration Breaking and a strange error
user name
2007-12-16 00:43:52
This list is dedicated to Prototype and Scriptaculous, if
you want
help with Rails per se, you might be better off asking in
http://gro
ups.google.com/group/rubyonrails 

That aside, it seems that, as you suppose, your problem lies
with
conflicting rails versions. Maybe your hosting has upgraded
the rails
gem to 2.0?

You should always make sure to have the version of rails you
use for
development frozen in ROOT/vendor/rails. To do this, go to
your
application root in your development box and 'rake
rails:freeze:gems'
and then redeploy the code. That will copy the rails gems
you have in
your dev box into the vendor/rails directory, which takes
precedence
over the system gems.

Good luck 
-Nicolas

On Dec 16, 2007 4:30 AM, Gcompany <saurabh.a.bhatiagmail.com> wrote:
>
> Hi All,
>
> I am stuck in a rake migrate here, can any one help
me?
>
> Here's how the problem goes;
> we added a new table in the application,our rake broke
when we
> migrated the new tables. We got the following error:
>
> oepfotrex [~/railsapp/config]# rake db:migrate
> (in /home/coepfo/railsapp)
>
>    
************************************************************
*****
>     * config.breakpoint_server has been deprecated and
has no effect.
> *
>
************************************************************
*****
>
> rake aborted!
> undefined method `template_root' for
ActionController::Base:Class
>
> We figured out the difference in rails version but we
are not able to
> figure out the problem.
>
> We are deploying the application in the production
environment
>
> Thanks
>
> Saurabh
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Migration Breaking and a strange error
user name
2007-12-16 01:04:16
Thanks Nicolas,

I will take care about this in the future.

Regards

Saurabh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )