Questions tagged [ruby-on-rails]
Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.
In my Rails 7.0.1 app with Ruby 3.0.3 I get this error when performing a search with SearchKick:
19:13:13 web.1 | Started GET "/search?q=nemesis" for ::1 at
2022-01-24 19:13:13 +0000 19:...
So my gemfile specifies ruby '2.6.3' and I used rbenv to install ruby 2.6.3. However, when I try to run rake db:create, it gives me an "Your Ruby version is 2.7.0, but your Gemfile specified 2.6....
I am new to ruby on rails hence when i am trying to create new project by following command:
rails new abc
I am getting following error
Psych::BadAlias: Unknown alias: default
I'm using Rails 5 with Ruby 2.3.1 and following gems:
I have Facebook app that passed App Review and it's live.
I generated a decorator to separate out a controller's logic and refactor the key-value pair (hash) in a "def attributes" method to send back to the controller for render json.
I am trying to write system tests. I want to run a classic login page test.
I have a field for email, password, and submit button.
It is working in production env and alive without any problem.
I'm not really sure how to quote this question, but I'm making a clone of Reddit in Ruby on Rails.
On the index page I am displaying all of the posts I have in the table "Posts". But when I ...
I have been looking for the solution but got no any luck, have searched alot and tried many solutions found on stackoverflow or github issues... but still same error..
Referring to this post I tried, ...
I have a Rails application that needs to send a notification to Firebase. Searching led me to the only solution - using the rpush gem. But I absolutely do not understand how to set it up for Firebase. ...
I am new at Ruby on Rails. And I do not understand, why there are can be only one has_many through in model?
class Physician < ApplicationRecord
has_many :patients, ...
Is it possible to strip forms' input fields in Rails Active Admin?
form do |f|
f.input :attr, as: :string
I tried string_options to copy datepicker_options ...
I have a rails mongoid model with a string field end_date as follows
field :end_date, ...
I use MongoDB to store information about products. Every product has a title (string), description(string), etc
gem 'mongoid', '~> 7.3.0'
gem 'carrierwave-mongoid', :require ...
I have a small rails application in which if the environment is development, I am storing images locally. I can see that the image is successfully being uploaded but for some reason when I use the ...