Re: SOLVED: ActiveRecord - issues with schema

2014-10-12 Thread Paul van Tilburg
On Fri, Oct 03, 2014 at 02:39:59PM +0200, Sebastjan Hribar wrote:
> I explicitly stated activerecord 4.0.4 for my camping app and there are no
> errors anymore.

I ran into the same problem and when I used Camping from git master
(i.e. 0904ad4), it worked correctly.  This also confirms we need a new
release, I guess :)
With git master, you can use AR 4.1.6.

Cheers,
Paul

-- 
Web: http://paul.luon.net/home/  | E-mail: p...@luon.net
Jabber/GTalk: p...@luon.net  | GnuPG key ID: 0x50064181
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: SOLVED: ActiveRecord - issues with schema

2014-10-03 Thread Sebastjan Hribar

Hi,

I explicitly stated activerecord 4.0.4 for my camping app and there are 
no errors anymore.


regards,
seba


On 02. 10. 2014 19:07, Sebastjan Hribar wrote:

Hi,

My apps recently stopped working. Right after I launch the server I 
get (errors from sample app)


ActiveRecord::RecordNotFound at /
Couldn't find Test::Models::SchemaInfo with 'id'=firstRuby 
/home/sebastjan/.rvm/gems/ruby-2.1.1/gems/activerecord-4.1.5/lib/active_record/relation/finder_methods.rb: 
in raise_record_not_found_exception!, line 320



and upon refresh

TypeError at /
superclass mismatch for class BasicFieldsRubytest.rb: in 
, line 10



I've noticed this recently when I started deploying with phusion 
passenger and I thought the issue was related to passenger 
(admittedly, one of the issues was:)


Then, the only thing I could come up with that could be the cause is 
the AR as I've updated it because I've started learning rails.


gem list shows:

...
activemodel (4.1.5, 4.0.4)
activerecord (4.1.5, 4.0.4)
activerecord-deprecated_finders (1.0.3)
activesupport (4.1.5, 4.0.4, 2.3.18)
...

Are my assumptions about AR correct? Because I haven't made any 
changes to the code itself.


Also, .camping.db contains schemas for separate apps, however each 
table only has the id and version fields. It seems migrations are not 
running at all?


If the problem is in AR, how can I use older version for camping and 
newer for rails?


Thank you for your help.
regards
seba


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


ActiveRecord - issues with schema

2014-10-02 Thread Sebastjan Hribar

Hi,

My apps recently stopped working. Right after I launch the server I get 
(errors from sample app)


ActiveRecord::RecordNotFound at /
Couldn't find Test::Models::SchemaInfo with 'id'=firstRuby 
/home/sebastjan/.rvm/gems/ruby-2.1.1/gems/activerecord-4.1.5/lib/active_record/relation/finder_methods.rb: 
in raise_record_not_found_exception!, line 320



and upon refresh

TypeError at /
superclass mismatch for class BasicFieldsRubytest.rb: in 
, line 10



I've noticed this recently when I started deploying with phusion 
passenger and I thought the issue was related to passenger (admittedly, 
one of the issues was:)


Then, the only thing I could come up with that could be the cause is the 
AR as I've updated it because I've started learning rails.


gem list shows:

...
activemodel (4.1.5, 4.0.4)
activerecord (4.1.5, 4.0.4)
activerecord-deprecated_finders (1.0.3)
activesupport (4.1.5, 4.0.4, 2.3.18)
...

Are my assumptions about AR correct? Because I haven't made any changes 
to the code itself.


Also, .camping.db contains schemas for separate apps, however each table 
only has the id and version fields. It seems migrations are not running 
at all?


If the problem is in AR, how can I use older version for camping and 
newer for rails?


Thank you for your help.
regards
seba
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list