<dd id="yld2g"><track id="yld2g"></track></dd>

    1. <th id="yld2g"></th>

      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.

      Filter by
      Sorted by
      Tagged with
      0
      votes
      0answers
      2 views

      Rails 6.1: What is preventing tests from running?

      I've created a new Rails 6.1 application from scratch (using Ruby 3.0.0). I've run db:create and generated a single model with some string columns, followed by rails db:migrate. I ran rails test but ...
      2
      votes
      0answers
      12 views

      Why is my Rails `db/schema.rb` prefixing functions with `public`?

      Upon rebuilding my Postgresql database from a dump file using pg_restore, my schema file db/schema.rb is now prefixing the gen_random_uuid() function with public. create_table "cars", id: :...
      1
      vote
      0answers
      22 views

      Rails specify a required scope

      There is a model that has an active boolean field. It gets set to true once the record is no longer a draft, and can be used by the system. This in turn requires developers to remember to use .active ...
      1
      vote
      0answers
      14 views

      Google Cloud Storage setting an expiry date on requested assets despite explicitly setting infinite TTL

      I have a Rails 5.2.3 app that's running on Google Cloud services, and I have some images that are user uploaded, such as staff images. These images are uploaded onto a GC Storage bucket set to be ...
      0
      votes
      1answer
      25 views

      Consume external API and performance

      I am working a Ruby on Rails project that consumes data through some external API. This API allows me to get a list of cars and display them on my single webpage. I created a model that holds all ...
      0
      votes
      0answers
      12 views

      Ruby: Ideas to convert Arel.sql to Arel::Nodes::Case?

      I'm trying to refactor a piece of code (and to improve my understanding of Arel::Nodes::Case as well) and I would like to convert this Arel.sql statement Arel.sql(default_order) def ...
      0
      votes
      1answer
      14 views

      How to show Ruby Rails Form Modal popup on button click?

      I am new to Ruby, when some one click on a Add new button in index.html.erb the form popup will show on this page the form date will come from new.html.erb so how I can do this I am using bootstrap ...
      0
      votes
      0answers
      16 views

      Rails NOT Create DB on RDS AWS

      I have created a RDS instance with the following rule added to the security group: | Type |Protocol|Port range| Source | |--------|--------|----------|---------| |All TCP | TCP |0 - 65535 |0.0.0....
      0
      votes
      1answer
      25 views

      Unable to create unique index for two belongs to associations

      I've got the following model: class Access < ApplicationRecord belongs_to :site belongs_to :user end I've recently added the following validation: validates :user_id, uniqueness: { scope: :...
      -2
      votes
      1answer
      11 views

      Custom action route inheritance in Rails

      I have the following controller inheritance chain (note that models do NOT inherit, but rather have a parent-child relationship): EmployeesController < SitesController < CompaniesController I ...
      0
      votes
      0answers
      16 views

      Action-text-attachment tag not displaying on React front end

      I created a rails 6 Blog application using Action Text/Active Storage, the image loads fine on the rails server. But when i am using the api call to fetch the json and using the ...
      0
      votes
      1answer
      16 views

      Override Devise sessions controller to trigger “confirm your email” email when signing in with unconfirmed account

      I am using the confirmable feature in Devise. When someone tries to sign in to an account that has not been confirmed, Devise automatically redirects them back to the sign in page with the error ...
      0
      votes
      0answers
      13 views

      Rails Devise Token Auth Reset Password Flow - How to deep link from 302 redirect

      I am trying to implement a reset password flow with devise token auth gem: https://github.com/lynndylanhurley/devise_token_auth The end client will be a mobile device (e.g. iOS, Android). I am ...
      0
      votes
      1answer
      17 views

      Username and email live validation with jquery in rails 6

      I am trying to incorporate client side validation for username and email on my registration forms. I found client_side_validations but all the information I amfindint of for rails 5 and before. Is ...
      0
      votes
      3answers
      29 views

      HTTP status code for this case (400 or 422)

      I have some method that looks like this def some_method if params["status"] == "good" some action render json: {message: "action success"}, status: 200 ...

      15 30 50 per page
      1
      2 3 4 5
      21525
      欧美日韩国产在线一区二区_午夜短视频在线观看_亚洲国产欧美日本视频_亚洲精品高清视频在线观看