My registration form, which is a form for the Users model, takes a string value for company. However, I have just made a change such that users belongs_to compa
I am trying to listen to a Select2 event in a Stimulus controller via the data-action. I have a stimulus controller, where I have included an event listener for
I'm working on the project where we are using :sql schema format for the Active Record dumper (to support more complex logic like triggers). We have a lot of
In my Rails 3 project, I want to send some simple notification emails. I don't need to make a template for them or do any logic. I just want to fire them off fr
I know that I can set my ENV variables in bash via export admin_password = "secret" But is there a way to do it in my rails source code somewhere? My first a
Time to time I repeat the following commands: ssh username@servername cd /projects/rails_project bundle exec rails c production I want to create a shell scri
I am using devise for user authentication, how i can request from user, after clicking on sign in button, to enter sms code which is automaticaly sent to his mo
I created a new migration, it looks like this one: class AddCommentsToUsers < ActiveRecord::Migration def change add_column :users, :comments, :text
I have an autocomplete field on my rails app, which is not returning the postal_code for some French cities, whereas they actually DO exist (and since all citie
What is the correct way to manage conditional flow in a gem based on Rails version? Rails 4 changes some things so I need to conditionally flow based on Rails
I'm having trouble displaying a list of days in a week in a form. <%= form_for [@hourable, @hour] do |f| %> <% days = [] Date::DAYNAMES.each_with
I am having trouble showing a mock logged in user in cucumber. When a user is logged in they can, make a post. My Errors: (::) failed steps (::) undefined
So I am currently writing a test for a controller in an existing controller that just didn't have one before. What I want to test is a redirect that happens whe
Ryan Bates mentions the LISTEN/NOTIFY functionality of Postgres when discussing push notifications in this episode, but I haven't been able to find any hint on
I am doing manual join and I need to pass a parameter to its ON clause: Foo.joins("LEFT OUTER JOIN bars ON foos.id = bars.foo_id AND bars.baz = #{baz}") Is t
I am doing manual join and I need to pass a parameter to its ON clause: Foo.joins("LEFT OUTER JOIN bars ON foos.id = bars.foo_id AND bars.baz = #{baz}") Is t
I am doing manual join and I need to pass a parameter to its ON clause: Foo.joins("LEFT OUTER JOIN bars ON foos.id = bars.foo_id AND bars.baz = #{baz}") Is t