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.
ruby-on-rails
44
questions
0
votes
1
answer
39
views
How can i tell turbo that a view transition should be "Back"
I have my css set up to target back and forward page transitions, which works great when clicking links on the site (forward transitions) and when clicking the browsers back button (back transitions)
...
0
votes
0
answers
32
views
finding the appropriate session for an IdP single logout request with Ruby SAML
I'm putting together a gem for our Rails apps to use SAML single sign-on/logout via Entra ID. I had some questions about the final bit I need to implement: ID provider initiated single logout requests....
0
votes
0
answers
21
views
Is there a way of connecting an app running Rails 6.2 on Heroku with a persistent file system somewhere on the cloud? [closed]
We are running a Heroku app built on Rails 6.2 with Postgres and Redis. For some of the processes we need to run, we must keep a proper persistent file system. AWS S3 will not work for our needs. ...
1
vote
1
answer
97
views
How to set view context in Rails?
I’m building a gem that intercepts Rails’ default render behavior. Instead of rendering a view, it looks for a helper method that corresponds to the current controller’s action name; it then uses the ...
0
votes
1
answer
35
views
React Component in Rails App Appears on Localhost but not Heroku Production
I have a Rails 7 app (esbuild, NO webpacker) with multiple React components, most of which work perfectly on localhost and in my Heroku production environment.
Weirdly enough, this one component is ...
0
votes
0
answers
21
views
Rails 7 actiontext embedded images
Using trix 2.1.2, Rails 7.1.3.4, I'm able to create a message with an embedded image (using google for active storage) and it displays when I first create the message and also when I "show" ...
0
votes
1
answer
53
views
Do I need a Transaction here or am I fine with just a Lock?
I have this table:
create_table :api_usages do |t|
t.references :api_key, null: false, foreign_key: true
t.date :billing_date, null: false
t.integer :request_count, null: false
t.timestamps ...
0
votes
0
answers
58
views
Devise gem bundled but server indicating error
I am a newbie and would need some assistance. I added devise gem to my Instagram clone app and added "sign up", sign in", "sign out", and "edit profile" links onto ...
-1
votes
0
answers
27
views
Can't get bootstrap dropdown in my header to work after changing pages
Using Ruby on Rails and Boostrap 5.3 to create a site to host my projects and info. I have a header file containing all of my navbar code. After visiting any link from one of the dropdown options, the ...
0
votes
0
answers
13
views
Creating batch classes on BigBlueButton using greenlight V3
I've been using greenlight v2 until very recently, and since I'm dealing with large number of classes every semester I came up with this code to create batch classes in greenlight using Ruby on rails:
...
0
votes
2
answers
77
views
How can I update how ActiveRecord::Base#where interprets ranges?
It appears that ActiveRecord::Base#where partially distinguishes between ranges defined with 2 dots (0..) and ranges defined with 3 dots (0...).
E.g.
> User.where(id: ..0).to_sql
=> "SELECT ...
0
votes
3
answers
67
views
authentication from scartch in rails
Hi i am learning rails from the Odin project and i am creating a simple authentication without using devise . the course doesn't really give enough info to help beginners finish that project
so, Here ...
1
vote
1
answer
44
views
Rails form_with-helper: What is a :scope?
I'm currently reading the Ruby on Raily API-documentation. Specific the part about the form_with helper: https://api.rubyonrails.org/v5.1.7/classes/ActionView/Helpers/FormHelper.html#method-i-...
1
vote
0
answers
44
views
+50
Turbo-Stream broadcast and Sidekiq job - Job runs, but page does not update
Trying to run a sidekiq job then broadcast the updated attributes to the page assuming the user is sitting there watching it.
I'll try and list all relevant code:
cable.yml
development:
adapter: ...