ruby-on-rails-5 Questions

2

Solved

I'm trying to integrate oAuth2.0 In my rails-api only application, using doorkeeper. But I keep getting this error, "undefined method `helper_method' for ApplicationController" and yet could not fi...

1

Solved

Recently I've found a piece of code for ruby on rails which should search string like like-operator: scope :search, -> (query) { where('name @@ :q', q: query) } But couldn't find any document...

1

For starters, this is the view I am trying to replicate: This is the HTML from that layout (from the SAT portion anyway, you can extrapolate the rest): <table class="table table-hover table-...
Entrechat asked 17/9, 2016 at 12:16

2

Solved

I just upgraded to Rails 5 and everything went pretty smoothy but for no apparent reason a method that is called after skip_before_action is not allowing rspec to run with this message Before pr...
Phylactery asked 22/9, 2016 at 19:11

2

Solved

I am making an app in rails 5 with devise. But after migration of user model which is used by devise the results are following: User.new => User id: nil, email: "", created_at: nil, update...
Licastro asked 17/7, 2016 at 7:48

3

Solved

I am using Rails 5 API with devise. I have a User model. Schema looks like this. create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_passw...
Calve asked 22/9, 2016 at 7:21

2

I have models: Frame.rb belongs_to :manufacturer, foreign_key: 'model' accepts_nested_attributes_for :manufacturer, :reject_if => proc { |obj| obj.blank? } When i try to create new Frame wit...
Stuffing asked 20/5, 2016 at 21:14

1

Solved

I have a metadata column of type jsonb. I know how to check whether it contains a specific key: obj = Model.create obj.metadata = {"foo"=>"1", "bar"=>{"baz&...

1

I'm running into an exception with Sinatra 2.0.0 beta 2 with Rails 5 deploying to the Amazon Linux AMI v 2.1.6. I've posted the issue in the Sinatra Github repro but it's been suggested I post it h...
Ambrosio asked 18/9, 2016 at 23:23

2

Solved

I'm working with Rails 5 an I just have created a Media model using scaffold tool. rails g scaffold media name:string And I got different names and routes and view etc... It was not right plurali...
Crawl asked 20/9, 2016 at 4:37

1

Solved

I created a new rails 5 app with postgresql db and modified the database.yml file. I successfully created both development and test databases, but when running migrations only development db is upd...
Compagnie asked 13/9, 2016 at 18:48

1

I am using Sidekiq to deliver my emails asynchronously but have had persistent errors about not being able to find the email template. It isn't consistent as it works from time to time (like when I...
Torrefy asked 26/8, 2016 at 14:53

1

I'm getting the following error when trying access the log in method of my sessions controller: JWT::DecodeError (Nil JSON web token): lib/json_web_token.rb:11:in `decode' app/helpers/sessions_he...
Palinode asked 24/8, 2016 at 5:47

1

Solved

I have been noticing that the rails community has been moving towards using the ":" notation for more things. And now recently I received a comment in a code review that this: post 'example...
Autostrada asked 24/8, 2016 at 17:38

2

Solved

I have two models, Parent is Property, child is Phone. When attempting to create a new Property record with nested Phone data, I receive an error message: Phones property must exist. I've studied ...
Crisper asked 23/8, 2016 at 0:27

0

Is it possible to determine if you are in the context of a running Rails server or console in an initializer when Spring is used? I've seen similar questions that don't take Spring into account.
Triennial asked 22/8, 2016 at 14:18

1

Solved

I have a Rails 5 application which I was planning to deploy on Linux, but because we needed some access very specific Windows-only software, I need to deploy it on Windows Server 2012 R2. My softwa...

1

Solved

I'm trying to update to Rails 5, I'm getting the following deprecation warning: DEPRECATION WARNING: Method to_hash is deprecated and will be removed in Rails 5.1, as ActionController::Parameter...
Stereoscopy asked 2/8, 2016 at 2:31

5

Solved

I use 'rails s' and the server won't start. I just started it, too. And when I restarted it, I get this: => Booting Puma => Rails 5.0.0 application starting in development on http://localhos...
Tamratamsky asked 21/7, 2016 at 21:49

1

Rails 5 introduced Action Cable, but in Rails 4 there was Live Streaming. So I'm very much confused what's the difference in both and is Live Streaming is dead in rails 5 ? or Action Cable is much ...
Standfast asked 4/8, 2016 at 2:2

1

Solved

I am recently working through a Rails 5 upgrade, and am running into this error when I try to fire up the rails console: /actionpack-5.0.0/lib/action_controller/test_case.rb:49:in initialize': wro...
Spill asked 2/8, 2016 at 9:12

2

Solved

I am using Rails 5 and I want to use shared files in my project. I have searched the web about this, and I got some results as follow: For Rails 3 app/views/shared For Rails 4 app/views/applic...
Emmer asked 2/8, 2016 at 9:35

1

Solved

I have implemented action cable of rails-5 in my system and it's work fine on localhost, but when i tried to bind with ip it's give below error message. WebSocket connection to 'ws://192.168.1.4...
Terret asked 2/8, 2016 at 11:36

1

Solved

I'm upgrading an app from rails 3.something to rails 5. For some reason, I'm am getting undefindied method respond_to anytime I use that method in any of my controllers. This was working before and...
Forbiddance asked 26/7, 2016 at 22:5

1

Solved

While i was trying to submit the form, following error occured: Validation failed: Images imageable must exist and render the same new.html.erb view. If i comment the file field in new.html.erb. P...
Autochthon asked 26/7, 2016 at 7:59

© 2022 - 2024 — McMap. All rights reserved.