Skip to main content
0 votes
1 answer
230 views

I have a Rails action that has 83% of its run time spent on this: ApplicationCode in (Nested/Controller/my_controller/my_action There's an info popup that says this: Deeper visibility is not ...
mstrom's user avatar
  • 1,783
0 votes
0 answers
76 views

I have a Table called Blog which has 20 entries. Now i want to create 20 routes fetching title from the Blog table with minimal code or method in routes file. And i dont want to create it manually. ...
Mark's user avatar
  • 1
1 vote
1 answer
1k views

I found the following kind of usage of ActiveRecord#find_by written in a Rails 4.1 project: booking = Booking.find_by(member_id: Member.where(id: 1).select(:id)) However, this query returned nil ...
Gerald's user avatar
  • 824
0 votes
1 answer
252 views

I'm working on an upgrade from Rails 4.0.13 to Rails 4.1.16... en route to Rails 5. @account and @facility are ActiveRecord model instances, retrieved successfully in the controller ...
changingrainbows's user avatar
1 vote
2 answers
2k views

Below is my code in session_store.rb Rails.application.config.session_store :active_record_store , key: '_test_key', secure: :true Browser receiving below response headers when requests rails ...
Khaja Bhanu Mohd's user avatar
1 vote
1 answer
164 views

I recently pushed a new version of my websites Javascript code, which caused CSS and JS media not to be loaded. In the case of Chrome, the requests were stalled due to a 6 request per domain/origin ...
David Milanese's user avatar
1 vote
1 answer
971 views

Some of my feature specs are failing intermittently. Our specs are setting the base-line to be in the past. I have found the following: Error thrown is: UncaughtThrowError (uncaught throw :warden): ...
Harry V's user avatar
  • 73
0 votes
0 answers
533 views

I'm working on a specific case where I want to force SSL in a Rails app, I've tried using: Rails.application.configure do config.force_ssl = true end However, there are a couple of endpoints that ...
Fdo's user avatar
  • 1,123
0 votes
1 answer
1k views

Is it possible to check that asset pipeline related code and configuration is working without deploying? Deploying to the testing server takes a couple of minutes, which is time I'd rather not waste. ...
Andrew Grimm's user avatar
  • 82.3k
0 votes
1 answer
638 views

The buildpacks on my environment are as follows === xyz-app Buildpack URLs 1. https://github.com/jasonfb/heroku-buildpack-cedar14-imagemagick704 2. https://github.com/bobbus/image-optim-buildpack 3. ...
Jason FB's user avatar
  • 6,088
2 votes
1 answer
4k views

I am working on ROR application. i have a functionality requirement, where i have to call a method for every 30 seconds using sidekiq and i am using these gems # sidekiq gem 'sidekiq', '~> 3.3.0'...
SaiBharath's user avatar
0 votes
1 answer
90 views

I have a rails 3 app I've updated to 4.1 and have one failing test left that is driving me crazy. It seems that in rails 4, when you create a datetime with only a date, it adjust the time to the ...
Chad's user avatar
  • 768
1 vote
1 answer
2k views

I am in the process of changing some functionality and as such, I want to use find_or_initialize_by to replace new My modal has 13 columns modal = Modal.new(col1: col1, col2: col2..... col13: col13) ...
David Sigley's user avatar
  • 1,198
0 votes
2 answers
59 views

I have created a form useing form_for - = form_for @category, url: url_for(:controller => 'admin/category',:action => new_record ? "create" : "update"), name: 'udfFieldForm', id: 'udfFieldForm'...
Arvind Rajput's user avatar
0 votes
1 answer
436 views

I am having three models Deals,CellPhoneAttribute and Cellphone Equipment. The relation between models are: class CellphoneEquipment < ActiveRecord::Base belongs_to :cellphone_deal_attribute ...
prafull purwar's user avatar

15 30 50 per page
1
2 3 4 5
32