Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
108 views

I have a Rails 6.1 application that previously used to serve assets from /assets (asset_host was unset) Recently I've changed the asset_host to use //assets<X>.example.com/ where X would be a ...
Nick M's user avatar
  • 2,562
0 votes
0 answers
41 views

I am attempting to build an app where a user creates an organization gets a custom subdomain generated for them that they can access. This works. The next step is to allow them to add a custom domain ...
1 vote
0 answers
81 views

Can someone explain me how to use in form and how to pass data to route with simple example... <form> {{ csrf.form_tag }} </form>
1 vote
0 answers
89 views

When I add plugin: Cuba.plugin Cuba::Safe In the post method I see that csrf.safe? returns false class Cuba module Safe module CSRF def token session[:csrf_token] ||= SecureRandom....
user29559775's user avatar
0 votes
1 answer
76 views

Setup # Gemfile gem 'rspec-swag' # config.ru map '/orders' do run Web::OrdersApp end map '/admin/orders' do run Web::AdminOrdersApp end # rspec ...
gayavat's user avatar
  • 19.5k
-2 votes
1 answer
80 views

I'm doing this: require 'rack/test' data = # some binary data, for example, ZIP archive put('/foo', data, 'content_type' => 'application/octet-stream') Works just fine, until I put the % symbol ...
yegor256's user avatar
  • 106k
1 vote
0 answers
91 views

I am encountering an issue when deploying a JRuby (9.4.8.0) WAR file in Tomcat (9.0.58.0). During initialization, the deployment fails with a RackInitializationException and an exit call in the ...
0 votes
0 answers
71 views

Below is my stacktrace, and I was facing this issue after rails upgrade. and this issue was happening after deploying my code. I updated the params structure aswell by using params.permit! but still ...
1 vote
1 answer
245 views

I have a gem which conditionally loads RailsWarden::Manager, based on a flag in the config/initializers/mygem.rb file: module Mygem class Railtie < Rails::Railtie initializer "...
0 votes
1 answer
58 views

Consider the following code snippet: require "sqlite3" db = SQLite3::Database.new "my.db" p db.execute("select * from user where name = ?", ["my_user_name"]) ...
0 votes
1 answer
73 views

I'm trying to use Slack interactive content to send the response of a button into a Sinatra app but the body doesn't get de-serialized. Whenever I try to use the Slack message button I receive this ...
Alvaro's user avatar
  • 69
2 votes
1 answer
296 views

I want to do something like this: MyController < ApplicationController rescue_from ActiveRecord::StaleObjectError, :retry I have an app where users and admins are occasionally updating the same ...
1 vote
0 answers
103 views

When I'm starting Rails Server to run my app, I get this error on the browser and terminal, Yesterday It was working fine but suddenly getting this issue, Puma caught this error: undefined method `...
2 votes
3 answers
803 views

User I am running a large Rails app with the Unicorn webserver in production. After upgrading from rails 7.0 to 7.1 I am getting the following issues: Here is the error that happens for every request ...
0 votes
1 answer
93 views

I am trying to understand how order in middleware of rack work. I have this middleware class Middleware1 def initialize(app) @app = app end def call(env) puts "Middleware 1 start&...
Dedy Puji's user avatar
  • 635

15 30 50 per page
1
2 3 4 5
...
109

AltStyle によって変換されたページ (->オリジナル) /