Data dodania Pytanie
2017-08-30 23:08 Using Zeus for Rails auto-reloading, how do I include classes in extra subfolders? »
I'm working on a large Rails 3.2 project. I use Zeus (and sometimes Guard) to auto reload rails so the tests run faster. However, when running certain...
(0) odpowiedzi
2017-08-30 04:08 NameError in ArticlesController#create undefined local variable or method `article_params' for #<ArticlesController:Did you mean? article_path »
I am getting this error when I create my articles: error: NameError in ArticlesController#create undefined local variable or method `article_params' ...
(2) odpowiedzi
2017-08-30 02:08 syntax error, unexpected '=', expecting keyword_end flash [:notice] = "Article was submitted succsefully" »
I have this error which is not letting me look at articles that are created this is the error syntax error, unexpected '=', expecting keyword_end fl...
(2) odpowiedzi
2017-08-29 20:08 sending Sha256 hash as a URL param as signature for Rails request data »
I've noticed that when i send a url like this: http://localhost:3000/register/register_user/?sig=zaQ/876CwJMEEmrJqAOYHyEKBXy2s03NDmk+3FsXPr4= what ...
(1) odpowiedzi
2017-08-29 09:08 migration from rails 3.1 to 3.2 with plugins and fix the deprecation warnings »
I am working in a project with Ruby version 1.9.3 and Rails Version 3.1.12. Planning to Migrate the rails Version to 3.2.The issue encountered is wit...
(0) odpowiedzi
2017-08-29 00:08 Prevent redirect when calling url_for in a rails app »
I'm trying to pass a url string to a view from one of my controller methods, like so: def index @locals = {table_cols: $config['global_fields'], ...
(1) odpowiedzi
2017-08-28 17:08 Divide ruby code into modules »
This is my Github repo for a sales tax problem. I am relatively new to coding and wanted to know how to divide it up into modules. I need 4 modules...
(0) odpowiedzi
2017-08-28 02:08 Example for deprecation warning »
I get the following deprecation warning: DEPRECATION WARNING: The behavior of `changed?` inside of after callbacks will be changing in the next ver...
(1) odpowiedzi
2017-08-27 15:08 How to pass parameter for validation / treatment in RUBY view »
I have a great doubt, I accept tips if they see a better option to do what I want. I have a layout that links to two items the same view >> <ul cl...
(1) odpowiedzi
2017-08-26 22:08 Google analytics behaviour API Throws Error »
Google API V3 To get Behaviour Overview Data returns Error ref: https://developers.google.com/api-client-library/ruby/apis/analyticsreporting/v4 Goo...
(0) odpowiedzi
2017-08-24 20:08 Error when I run rake test in Ruby on Rails »
I am getting an error when I try to run a test on my very simple app in ROR. I am taking a course online and I have this very simple database that has...
(2) odpowiedzi
2017-08-24 02:08 NoMethodError in ArticlesController#create undefined method `save' for nil:NilClass »
I have a problem with my app, I will now give you the code to from the app and picture of the error, this is my task: I am supposed to create a web ap...
(2) odpowiedzi
2017-08-24 00:08 Ruby : Convert timestamp to date time in given json input »
I have a JSON input. I would like to convert all timestamp (createdDate ,modifiedDate) to time in ruby. How do I do that? I tried below methods but di...
(1) odpowiedzi
2017-08-23 22:08 Permission denied @ unlink_internal when I run rake db:drop in Rails »
I get the following error when I run rake db:drop or rake db:reset I have tried everything I can find on the internet including restarting the server...
(0) odpowiedzi
2017-08-23 05:08 Manifest requires output filename »
I'm using Rails 3.0.10 and running rake assets precompile at production server and facing problem as manifest requires output filename.this code is al...
(0) odpowiedzi
2017-08-22 20:08 Trying to RVM install Ruby 2.4.1 for Mac El Capitan 10.11.6 and getting »
I've looked around to a few different similar problems, and ended up imploding RVM and starting from scratch a few times, and am still getting the sam...
(0) odpowiedzi
2017-08-22 04:08 How to call a user input in a method in ruby »
I am trying to make this send the user input number to the function but I do not know what I am doing wrong. Can anyone help me? puts "\n Amount with...
(2) odpowiedzi
2017-08-21 22:08 Ruby on Rails installation - An error occurred while installing nio4r »
I'm trying to install ROR and starting a first application. I installed it via RailsInstaller. ruby --version ruby 2.3.3p222 (2016-11-21 revision 56...
(0) odpowiedzi
2017-08-21 00:08 How to setup the devise_token_auth gem? »
Someone please can spare a hint how to create a sign up page, login page with this gem? is similar of devise? the routes are created, and why have t...
(0) odpowiedzi
2017-08-19 20:08 Ruby on Rails ActionCable and Redis config using Passenger and Nginx »
My ActionCable setup works perfectly in the development environment but it fails in production. For the server I am using Nginx and Phussion Passenger...
(0) odpowiedzi
2017-08-19 18:08 Passing parameters from form to controller using RoR »
I am new to RoR development and am a little confused about how parameters are passed from a HTML view to the controller. I have seen a few examples on...
(2) odpowiedzi
2017-08-18 22:08 Convert Time.zone.now to number OLE »
I need convert the DateTime to OLE, Actually I have this code def self.convert_time(t=42941.6102054745) Time.at((t - 25569) * 86400).utc end ...
(1) odpowiedzi
2017-08-18 14:08 Use Foreign key in where clause in Rails »
I have 2 models 1 is request and second is passed I have a has_one association between requests and passed like this Request.rb has_one :status ...
(1) odpowiedzi
2017-08-17 04:08 How to repeat single hash multiple times in one array? »
I want to create dozens of logins that rely on data from this array, logins: logins = [ { email: Faker::Internet.email, ...
(4) odpowiedzi
2017-08-16 17:08 How to upload multiple images with Rails 3 + mongoid + carrierwave-mongoid? »
I`m newbie in Rails. I try to create form for saving and editing posts (text title, content and images). There are my model for post: class Post i...
(0) odpowiedzi
2017-08-15 20:08 simple_format changes the text itself »
In Rails 3.0, the helper method simple_format changes the parameter itself. I expected that it only returns the wrapped text. 2.0.0-p648 :001 > Ra...
(1) odpowiedzi
2017-08-15 15:08 Upgrading ruby to 2.3.4 with rails 3.0.5 »
I am trying to upgrade my rails 3.0.5 application with ruby 2.3.4. Originally it was ruby 1.9.3. I was able to fix most things by updating the gems. H...
(1) odpowiedzi
2017-08-14 16:08 How to check if nonce has been used? »
In my Rails 3.1.5 application, I am using the ims-lti gem to perform third-party authentication. To perform the authentication, three things must be d...
(0) odpowiedzi
2017-08-14 07:08 rails how to reject updating when a parameter is missing »
i'm kind of new to rails and i want to require a user to input his current_password before updating his infos. I know this can be achieved through dev...
(1) odpowiedzi
2017-08-14 01:08 I have a cloud 9 error while running the app in cloud 9 »
when I run my app I get this error : (NoMethodError in Articles#new Showing /home/ubuntu/workspace/yappy/qaucky/app/views/articles/new.html.erb wher...
(1) odpowiedzi
2017-08-13 08:08 How to convert a ruby array output into a string in JS? »
I have this line coming from a helper in the BE and I want to set a variable with that output. No matter what I tried (toString, string interpolation ...
(1) odpowiedzi
2017-08-13 06:08 How to allow users to be able to upload to my google drive in rails app and then provide them a preview link for google doc in the app? »
I need my rails app users to be able to upload to my google drive folder. He should click browse file button and after submission, the file should be ...
(1) odpowiedzi
2017-08-12 01:08 Having to change paths within vendor libraries - Rails Asset Pipeline »
What's the best practice for loading third party Javascript libraries (into the asset pipeline) that have references to images and css? My concern is ...
(0) odpowiedzi
2017-08-12 00:08 Ruby on Rails CSS not loading via assets pipeline »
I have searched the web for a solution to this problem and haven't found a solution that works albeit I did find similar problems. So, I am new to Ro...
(2) odpowiedzi
2017-08-11 11:08 sort mini test in rails »
I'm new to rails and i've done a simple sorting of dates in descending order. and now i need to write a test for it. my controller looks like this de...
(2) odpowiedzi