Active Record is a pattern that combines domain logic with storage abstraction in single object.
I am trying to do a like query like so def self.search(search, page = 1 ) paginate :per_page => 5, :page =&…
sql ruby-on-rails ruby postgresql activerecordHere is my query using fluent query builder. $query = DB::table('category_issue') ->select('issues.*') ->…
mysql activerecord fluent laravel eloquentIn my app a User can create a Business. When they trigger the index action in my BusinessesController I want …
ruby-on-rails ruby-on-rails-3 activerecord existsWhen I have array of ids, like ids = [2,3,5] and I perform Comment.find(ids) everything works fine. But when there …
ruby-on-rails activerecord findMy product model contains some items Product.first => #<Product id: 10, name: "Blue jeans" > I'm now importing some …
ruby-on-rails activerecord case-insensitiveI have been unable to find any documentation on the .build method in Rails (i am currently using 2.0.2). Through experimentation …
ruby-on-rails activerecord foreign-keysI have this search in Rails 3: Note.where(:user_id => current_user.id, :notetype => p[:note_type], :date =&…
ruby-on-rails activerecord ruby-on-rails-3I have a table in my database with adminId and clientId There might be 20 records with the adminId of the …
php codeigniter activerecordI'm using CodeIgniter's Active Record class to query the MySQL database. I need to select the rows in a table …
php mysql codeigniter activerecord nullIf I create a new rails 3 migration with (for example) rails g migration tester title:tester user:references , everything works …
ruby-on-rails activerecord migration