ruby-on-rails-4.2 Questions

1

Solved

The dockerfile consists as:- FROM ruby:2.2.3-slim MAINTAINER Milan Rawal <[email protected]> RUN apt-get update && apt-get install -qq -y build-essential nodejs libmagickcore...

1

Solved

I'm trying to configure a new rails4.2 app to authenticate against Google Oauth2. I seem to be successfully going through the process, but it's being treated as a failure. The initial authorisati...
Creamer asked 17/4, 2016 at 2:21

5

Solved

I have a Vagrant VM with Rails installed with a sample app. The VM is configured to forward the port 3000 (of Rails Webrick server) to my host 3000 port. config.vm.network "forwarded_port", guest...

1

I have a Rake task in a Rails 4.2 project that uses fork. My problem is that after the forked process has finished (i.e. after Process.wait) I get the following Postgres error when I try to access ...
Mascarenas asked 11/1, 2015 at 22:47

2

Solved

I am using Delayed Job as my queuing backend for Active Job. I have not set up any custom jobs and plan on using Action Mailer to send out scheduled emails asynchronously. How can I prevent a sched...
Corpulent asked 26/1, 2016 at 21:38

1

Solved

While upgrading from rails 4.2.5 to the recently released 4.2.5.1, I have encountered this error. This error exists only for specs with a before_filter that render an invalid status, such as render...
Dodecahedron asked 26/1, 2016 at 19:28

2

I have the following helper method: def parse_potential_followers(params) t_id = TestSet.where(:test_name => params[:test_set][:test_name]).pluck(:id)[0].to_i screen_names = params[:potential...

3

Solved

When I run a deploy script, I'm having errors: [cb123fad] rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable) DEBUG [cb123fad] (Backtrace restricted to imported tas...
Coadjutrix asked 7/12, 2015 at 4:39

4

Solved

* UPDATE: this is now fixed in 4.2.stable and 4.2.1 * in Rails 4.2.0 (and current 4.2.stable), the ensure_in_range method happens before AR validation, yielding a RangeError if I do something as ...

3

Solved

Can any one provide me a good documentation for uploading files to S3 using asw-sdk Version 2. I checked out the main doc and in v1 we used to do like s3 = AWS::S3.new obj = s3.buckets['my-bucket'...
Aultman asked 3/3, 2015 at 5:55

2

We're using Paperclip with the aws-sdk gem to store and display images in our Rails app: class User < ActiveRecord::Base has_attached_file :image, storage: :s3, s3_credentials: 'config/s3.ym...

2

Solved

I am unable to successfully test custom HTTP variables in my Rails 4.2 application using minitest—for some reason, Rails doesn't seem to recognize them at all. I have the following test: require ...
Einstein asked 29/9, 2015 at 6:19

5

Solved

I am using Rails 4.2 with PostgreSQL. I have a Product model and a Purchase model with Product has many Purchases. I want to find the distinct recently purchased products. Initially I tried: Produ...

1

Solved

I have a class unzipper.rb that unzips a file using Rubyzip. In my local environment, I can succesfully unzip a file without explictly including the dependency using require 'zip' On Heroku thou...
Transmitter asked 22/9, 2015 at 15:11

3

Solved

I am building an API in rails 4. Before invoking an action, I am trying first to check whether an attribute exist in the http header. Is there a way to do that instead of checking each in all actio...
Habit asked 5/9, 2015 at 12:2

1

I've been scratching my head for the last few hours, looking for an answer but I can't find it anywhere. My gem file: # Use globalize for translating models gem "globalize", github: "ncri/globali...
Internalcombustion asked 29/1, 2015 at 23:58

1

I am trying to build some links for my datatable and been struggling with it for the past 4 hours. This is my current code: class UsersDatatable < TemplateDatatable def data users.map do |us...
Plectron asked 27/8, 2015 at 19:4

1

Environment Ruby 2.2.1, Rails 4.2.0, rspec-core 3.2.2, rspec-expectations 3.2.0, rspec-mocks 3.2.1, rspec-rails 3.2.1, rspec-support 3.2.2 I have the following method def send_event_alert_email(...
Bibbye asked 1/5, 2015 at 11:42

1

I've just upgraded an old app from Rails 3.0 to 4.2 and now it is impossible to query the database for very long IDs. Rails 3 Product.where(associated_id: 1311344470881970878875083923).first =&gt...
Affection asked 20/8, 2015 at 11:24

1

Solved

I'm confused about which gems need to be installed to correctly run Pry in a Rails 4.2 project. I seemed to be doing fine until recently. For some reason, binding.pry now seems to spit up whenever ...
Tani asked 9/8, 2015 at 12:28

3

Solved

I keep getting the following error when I run any sort of rake command, and in particular rake db:seed which will abort without completing: $ rake db:seed /Users/rachel/.rvm/gems/[email prote...
Hewlett asked 3/3, 2015 at 4:20

1

Solved

Every n seconds application is requesting a remote JSON file that provides live prices for securities in the Trading system. JSON has a block with the data I need (marketdata) and a block with the ...
Damarisdamarra asked 1/6, 2015 at 10:23

1

Solved

I have the following bit of code that is working fine with Rails 4.1 with protected_attributes gem (I didn't have my code moved to strong_parameters yet) models/employee.rb class Employee has_and...

3

Solved

Generated rails 4.2.0 app and added activerecord-postgis-adapter and edited the database.yml file accordingly. But now when I do rake db:create, it blows with the error: ± be rake db:create 2.1.0...
Lynching asked 28/12, 2014 at 13:6

3

Solved

I have implemented a nested attribute form using the nested attributes Railscast as a guide. As a result, the user can click an icon to dynamically add "child" rows to my view. Unfortunately, I ca...

© 2022 - 2024 — McMap. All rights reserved.