Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in has-many

Check if at least one record have a given attribute set to true

How to get highest count of associated model (Rails)?

In Rails how do I build a has_many association that has a scope

No association found for name - Nested Form Rails 4

Rails 3 has_many changed?

Backbone-relational hasmany best practices

In Ruby on Rails, how can I create a scope for a has_many relationship?

limit the number of objects returned in a has_many

Rails has_many through aliasing with source and source_type for multiple types

Undefined property: Illuminate\Database\Eloquent\Relations\BelongsTo::$name laravel 5.4

Rails has many and belongs to one

Can has_one association be used when the model has one or zero instances of another model?

Rails Question: belongs_to with STI -- how do i do this correctly?

Delete a Has-Many Relationship ONLY

What are the default values for Rails 3 for :dependent on has_many and belongs_to

Need data from rails join table, has_many :through

How it works - `belongs_to :user, dependent: :destroy`

Nested attributes for belongs_to association rails

Is it possible to create a conditional association in model?

Rails: Non id foreign key lookup ActiveRecord