Skip to main content
update a model attribute with ujs
Javascript • Asked by Joel
i have a page that displays games(model) with a select box for the game result outcome. Game model `has_one :result, autosave: true` and I have a unique id for each row in the table based on the ...

How do I rename a field on a model without running migrations or altering the database?
Rails Solved • Asked by Jay Killeen
Hi I have a rails app that sits over an existing SQL Server database that I have no control over. Purely read only access to. I have a model like Customer with fields like CustomerCode, Custo...

How to make online product designer in ruby on rail
General • Asked by Asad
Hello i want to build this type of online product designer in ruby on rails. [Online Product Designer]( Anyone know about any gem that provides this type of functi...

Knock error response in login
Gems / Libraries • Asked by Oscar Miguel Amezcua Estrella
Hiyas i want to response if user dont send `auth[email]` or `auth[password]` give the status 400 and return some json give that fields are required or the feedback the user or password is bad i fol...

Need guidance regarding my project: Neophyte LMS system
Rails • Asked by Hussain Akram
Hi guys, I'm developing a LMS system (in Rails 5) for my university project which is about training new employees in any compnay by setting projects and challenges (sequentially) to start with. For...

Bootstrap Modal with Date Picker, what am I doing wrong?
Javascript Solved • Asked by James
I have a Rails 5.1 app with bootstrap 4. I have bootstrap-datepicker throughout my application and it works perfectly or at least as expected. However whenever I try to use it within a modal it w...

Is it good practice to use array/jsonb column for a non searchable, single row table?
Rails • Asked by Luca Rossi
Hi guys wanted to get some feedback on the way I have been using In my first app I am using both array (text) and jsonb columns. I am using these instead of additional DB tables since the structure...

How can one setup a service booking app with time limitations?
Rails • Asked by Drilon Buzuku
Hey guys, how can one setup a service booking system where the customer can book services between 9am and 4pm on every monday and friday? Would you use the ice_cube gem to create timeslots and t...

Best way to create a report/spam button?
Rails Solved • Asked by Ryan Carter
Just looking for ideas on the best way to create a report or spam button/link on posts and comments. And do you typically have that notification sent to an in program inbox to an admin email, etc....

Bundle Install Doesn't Work
Rails • Asked by Steve
Hi guys, I seem to be getting an error message when I run bundle install. I'm curious if any of you have had this issue before as well? I tried uninstalling bundler and reinstalling it. I tried ...

Rails How to create multiple step with list survey questionnaires
Rails • Asked by Pranay Singh
I want to create a questionnaire page like this link When user clicks Next, the page reload with new questions.If user presses Back, the page reload with questions that answered by this user. Ho...

Best way to use common code for multiple applications ?
Rails • Asked by Pardha
Hi all, I would like to know the best way to use common code for multiple applications ? Basically I am working on two applications those two are build on top of third party APIs . I wa...

Are there any episodes or series on CMS related gems ?
General • Asked by Pardha
Hi, I have to build CMS for one of my clients. I would like to know your suggestions also please let me know if we have any related videos here. Thanks, Pardha

Eager Loading on Rails 5.1
Rails • Asked by Pardha
Hi all, Seems that the eager loding doen't work in my application. Please let me know whether I need to enable or configure anything. Here is th code for association mappings. ```...

Shrine uploading image to google drive
Rails • Asked by Misel Ademi
Hi, I am trying to upload images to google drive using Shrine. I followed instructions from this gem I added this gems to my project ...

Searchick filter with scope
Gems / Libraries Solved • Asked by Christophe Estanol
Has anybody used searchkick with a scoped model? I have an `Article` model with `scope :published, ->{ where(status: "Published") }`. So In my `ArticleController` I did the following: ``` qu...

Tutorials on recommendation engines
Gems / Libraries • Asked by TL
Hi Chris, I searched for videos on recommendation itens but couldn't find any. We run a real estate website and would love to provide similarities recommendations (like "users that viewed thi...

Rails routes.rb (routing with :as or :path)
Rails • Asked by Hugo A. Gallotto
Hi. I'm using Rails 2.3.16 and Ruby 1.8.7 I have the next routing: > map.namespace :controller1 do |c1| > c1.resources :controller2, :member => { :action1 => :get, :action2 => :get } ...

Should i be using jbuilder or AMS
Rails • Asked by Sam Mason
It looks like ams (Active Model Serializers) is heading towards deprecation and is telling users to use jsonapi-rb but should I just jbuilder as it included in the Gemfile for a new rails api 5.1 app?