For issues specific to the minor release of version 4.2.1 of Rails. If your question applies to Ruby on Rails in general, use the tag [ruby-on-rails]
Questions tagged [rails-4-2-1]
47 questions
-1
votes
1 answer
How to save users "ID" to another models field "user_id" simultaneously in the user_controllers create action RAILS 4 for rails API purposes
i have 3 model society and user now Society is manage by the admin model what happens is that when the user registers, the users "id" must be save simultaneously in the society models user_id field it has to happen with in the user_controller's…

amiel asparen
- 19
- 6
-2
votes
1 answer
Displaying the attributes of another table
I have two models: User and Role.
The User attributes are:
name:string
email:string
admin:boolean
role_id:integer
The Role attributes are:
designer:boolean
developer:boolean
The associations that I've set is that user belongs_to role and role…