Invalid Active Record Statement Rails 2.3.16

Posted by Ranzit on Stack Overflow See other posts from Stack Overflow or by Ranzit
Published on 2014-06-12T09:20:52Z Indexed on 2014/06/12 9:24 UTC
Read the original article Hit count: 107

Filed under:
|
|

I am using rails 2.3.16 ruby 1.8.7

For the following line of code I ma getting error as follows:

Code:

ForeignScheduledItem.find(:all, 
        :conditions => { :foreign_scheduled_item => 
          { :scheduled_items => { :subscription_id => params[:subscription_id] } } }, 
          :joins => :scheduled_item).each { |i| @subscriptions.push(Subscription.find_by_id(i.subscription_id)) }

Error:

ActiveRecord::StatementInvalid (ActiveRecord::StatementInvalid):

Can u please help in this regard.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby