actiondispatch Questions

4

Solved

I have a fairly decent grasp on the basic Rails concepts like ActiveRecord, routing, migrations, etc. One thing I'm having a hard time understanding is ActionDispatch. I can't find a plain-English ...
Ralina asked 29/5, 2013 at 19:53

2

Solved

I have a Rails 5 API only app and want to send cookies in the response of a JSON request. When I use ActionDispatch::Cookies to set a cookie in the response of the request it doesn't set Set-Cookie...
Wendiwendie asked 2/8, 2020 at 14:22

5

Solved

Following an upgrade from Rails 5.0 to 5.1 I'm getting this error anytime the app reloads, either from code changes during rails server or if I call reload! from the console. 🌶 13:53$ rc Loadin...
Beulahbeuthel asked 9/6, 2017 at 19:7

3

Solved

I want to have consistency in naming convention of my routes. Default param is :id for any resource. However if one nests another resource in it, param of parent resource changes to :parent_id. My...
Inkhorn asked 29/8, 2015 at 9:30

4

I am running Rails 3 and trying to filter sensitive information out of our logs which are JSON blobs that are passed as post parameters. For example, user creation might take a post param called us...
Gertiegertrud asked 10/3, 2011 at 20:49

2

Solved

I see that I can filter keys from Rails logs here, but it's not entirely clear how I can filter a key that is nested inside the parameter hash. My params hash looks like this: {"download"=>{"...
Anvers asked 21/3, 2015 at 9:19

5

In a Rails 4.2.0 application tested with rspec-rails, I provide a JSON web API with a REST-like resource with a mandatory attribute mand_attr. I'd like to test that this API answers with HTTP code...
Reid asked 4/4, 2015 at 11:18

3

Is there any way that i can make url_for to return the url based on the request.host during action dispatch routing ? mount Collaborate::Engine => '/apps/collaborate', :constraints => {:hos...
Inverter asked 7/12, 2015 at 11:17

2

I've searched for days but can't find any relevant answers to this question. In my Rails 4.1 app hosted on Heroku, when the load goes up, some PUT requests get REALLY slow. The slowest one today w...

2

Solved

I recently updated my rails 4.1.8 to 4.2 I'm not able to access rails app using private ip 192.168.1.x:3000 and also with my public-ip address. Rails app is working with lvh.me:3000, 0.0.0.0:3000...
Fulmis asked 28/12, 2014 at 10:11

5

I'm building a Ruby on Rails api using Ruby 2.0 and Rails 4.0. My app is almost solely a JSON API, so if an error occurs (500, 404), I want to capture that error and return a nicely formatted JSON ...
Gereron asked 21/8, 2013 at 13:42

2

Solved

When is the Rails request object available at the earliest time during the request lifecycle? Essentially, when is the request first available as a request object, and in which object? ActionDispat...
Tereasaterebene asked 7/12, 2011 at 21:20

2

Solved

I have a rails app which supports multiple domains and each domain may have multiple subdomains. Users visiting mydomain1.com do not receive the same experience as mydomain2.com (although the base...

1

I'm running rails3 with rails exception-notifier gem. When an exception occurs, and an email should be sent, I'm getting an exception from the ParameterFilter class. I've found the problem in the r...
Clancy asked 10/3, 2011 at 20:18
1

© 2022 - 2024 — McMap. All rights reserved.