Questions tagged [ruby-on-rails-4.2]

For issues specific to version 4.2 of Rails. If your question applies to Ruby on Rails in general, use the tag [ruby-on-rails].

Ruby on Rails 4.2 is the latest major revision of Ruby on Rails, "an open-source web framework that's optimized for programmer happiness and sustainable productivity." Rails 4.2 brings a bunch of new features and improvements over older Rails versions.

See Ruby on Rails 4.2 Release Notes for more information.

Resources

Related tags

702 questions
0
votes
1 answer

Rails 4.2 & Salesforce API with Restforce returning ActiveModel::ForbiddenAttributesError

I'm trying to write a rails 4.2.0.beta2 app that will allow our organisation to interface directly with our salesforce instance. I've been following this really useful entry here. I'm nearly there, i've got my app setup in salesforce, it appears to…
Huw
  • 635
  • 11
  • 25
0
votes
1 answer

Rails 4.2 + NGINX - application root won't load

My server setup works for a Rails 4.0 app, but fails on a 4.2 app. I get this error: An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource…
fatfrog
  • 2,118
  • 1
  • 23
  • 46
0
votes
1 answer

ActionController::UrlGenerationError No route matches AND NoMethodError undefined method `accounts_lists_url' with nested resources

I have a Rails 4.2.beta1 application and I am trying to return the :show method after successful creation of a new object. The resource is nested in the following method: resources :accounts do resources :lists do end The error I am getting…
SnareChops
  • 13,175
  • 9
  • 69
  • 91
0
votes
1 answer

Rails account_params missing parameters from backbone `.save()`

I am trying to create a user account using Backbone 1.1.2 and Rails 4.2.beta1. In backbone I am calling: public create(){ var email:string = $('#create-account-email').val(), password:string = $('#create-account-password').val(), passconf:string…
0
votes
2 answers

iOS Web App doesn't set cookie in the first place

I have seen lots of questions and answers on how to permanently store a cookie in an iOS web application... But I can't seem to even get this one set. The application runs beautifully in a real desktop browser, but fails when running inside of an…
SnareChops
  • 13,175
  • 9
  • 69
  • 91
-1
votes
1 answer

angularjs nomod error only on rails feature specs using compiled assets

In one of our rails and angularjs recently upgraded angularjs from 1.2.9 to 1.3.0, replaced bower with yarn and went from node 0.8.28 to 8.11.1. Everything works fine with the application in the UI. I fixed the missing module error in the app by…
Subash
  • 3,128
  • 6
  • 30
  • 44
-1
votes
1 answer

How do i record a user information such as email in RubyOnRails?

I am creating a post request for Forgot Password request. So I generated a controller using: rake generate controller post forgot_password Now since I want to record a user email on my form so defined them as follows: def forgot_password …
-1
votes
1 answer

Money Gem - undefined method `each' for nil:NilClass

I'm trying to use money gem in my machine but I'm getting following error. I'm referring this link - https://github.com/RubyMoney/money/blob/master/README.md Money.new(1000, "USD").exchange_to("EUR") NoMethodError: undefined method `each' for…
-1
votes
1 answer

Unable to override a method in spree model

I am upgrading my rails and spree to Rails 4.2 and Spree 3.1 I had overriden purchase! method in Payment model This is how the method is in spree module Spree class Payment < Spree::Base module Processing def purchase! …
Deepak Mahakale
  • 22,834
  • 10
  • 68
  • 88
-1
votes
1 answer

Rails 4 Nested Model : Not working

I was trying to work with simple nested models & forms but have failed eventually. I don't understand what wrong am I doing? Trying to implement simple nested model. A parent having many child. Can anyone please help me out. Thanks. Here are the…
-1
votes
1 answer

Rails - Session Variable Not Persisting Through Apartment Switch

I have a situation. >rails -v Rails 4.2.4 >ruby -v ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32] I am building a multi-tenant Time Entry solution using the Apartment gem. Here's the flow. I'm stuck. 1) User arrives at the signup page,…
-1
votes
1 answer

Rails4: NoMethodError in UsersController#show, undefined method

I'd like to develop an app for schedule. Each user create their own schedule. I'd like to display the data as followings; schedule title (user name) day1(mm/dd,yyyy) 09:00 Math 11:00 Science Room name A day2(mm/dd,yyyy) 10:00…
SamuraiBlue
  • 851
  • 2
  • 17
  • 44
-1
votes
1 answer

Sass - H5 text alignment

Hi i am currently working with rails 4.2 and using sass , and haml . I am trying to center align the h5 that i have but it seems that it doesnt want to cooperate with me and i already tried with the search with google but still a fail this is my…
user1868185
  • 899
  • 3
  • 9
  • 24
-1
votes
1 answer

"Unpermitted parameter:" error in Two Many-To-Many association with nested attributes added to whitelist already

I'm taking my first steps "on rails". I looked up several questions on stackoverflow and used google A LOT, but still I can't seem to solve my problem. I´m trying to write a rails app that lets you manage a list of movies, and a list of actors.…
-1
votes
2 answers

Send notification to user after a while Rails

I have this scenario: A user buys a product and when two days have passed after the transaction has been processed, I need to send a mail notification to buyer. At this moment my idea is to use whenever gem and check build a cron job to check in…
kitz
  • 879
  • 2
  • 9
  • 24
1 2 3
46
47