Data dodania Pytanie
2017-11-28 07:11 Ruby error : undefined method `any ' for 30:Fixnum (NoMethodError) »
I am trying to list the product reviews in spree back end. But getting the error 'undefined method any '. I am new to ruby,please help me to solve thi...
(2) odpowiedzi
2017-11-27 17:11 DEPRECATION WARNING: implicit join references. Rails don't want to be a SQL parser for includes »
I am upgrading an old app from rails3 to rails 4. Currently on rails 4.0 I have a lot of such deprecation warnings while running rspec: Currently,...
(1) odpowiedzi
2017-11-27 15:11 How to properly configure YT gem? Yt::Errors::Forbidden »
I am trying to use yt gem to access youtube API but I am having a problem. I have added gem: gem 'yt', '~> 0.28.0' Added configuration in applicat...
(1) odpowiedzi
2017-11-27 00:11 how to customize id for collection_check_boxes »
I am using rails4 and bootstrap_form. When I write = f.collection_check_boxes :helpability, People.all_helps, :id, :name the html is like <di...
(1) odpowiedzi
2017-11-27 00:11 Rails: Active record query conditions only work if stated as sql -- using Globalize gem »
Not sure if there is a fix for this that you know of, but when using the the globalize gem class Menu < ActiveRecord::Base translates :name ...
(2) odpowiedzi
2017-11-26 23:11 How to pass the value to javascript in html.erb rails »
I am trying to pass the value user.skypeid to a javascript code participants in html.erb. What is the right way to do it? The below approach doesn't w...
(1) odpowiedzi
2017-11-26 21:11 migrate is not running »
I made a model called user and in the timestamp_create_users.rb ( where timestamp = long number ) I have the following: class CreateUsers < Active...
(2) odpowiedzi
2017-11-26 18:11 Which part of the class name is a module? »
In a rails project I have the class: class Police::Office end Now I create an Interactor in the same namespace: class Police::Office::ConstructIn...
(1) odpowiedzi
2017-11-26 02:11 Properly call/fetch information »
I could use some guidance/nudge/light on an issue i’m having. I am trying to figure out a way to create fetchUserImg, so that it can display user p...
(2) odpowiedzi
2017-11-25 18:11 Save Model errors to flash Rails 5 »
I want to add hash with model errors to flash and after that redirect. This is the controller: def update current_user.update_attributes(user_par...
(1) odpowiedzi
2017-11-25 17:11 Secure Upload of an image with Carrierwave »
I'm trying how to secure my files upload with carrier wave, so I'm trying to following this code on this link of the carrier wave upload. config/initi...
(0) odpowiedzi
2017-11-25 16:11 Minimagic remove alpha doesn't work (Windows 10). Rails 5 with MiniMagic »
I have an app Rails 5 with Carrierwave for uploading images and MiniMagic. I want when the image is uploaded to convert to .jpg and if it is transpare...
(0) odpowiedzi
2017-11-24 21:11 My "Delete Comment" function from my Ruby on Rails Blog Website doesn't work and I don't know why »
My "Delete Comment" function from my Ruby on Rails Blog Website doesn't work and I don't know why. Here is my error: Routing Error No route matches...
(0) odpowiedzi
2017-11-24 19:11 Security when uploading images with Carrierwave »
I'm using carrierwave for upload images. And I saw how to configuring file permissions like this: CarrierWave.configure do |config| config.permiss...
(1) odpowiedzi
2017-11-24 18:11 How can I access the webhook data in jobs? (Shopify Rails) »
I'm making a Shopify App with rails and I have this: webhooks_controller.rb module ShopifyApp class WebhooksController < ActionController::...
(1) odpowiedzi
2017-11-23 20:11 Remove transparent and add white background to image, Rails with MiniMagick »
I am using MiniMagick with CarrierWave and Rails 5 to upload image. Every uploaded image is converted to .jpg, but now, If I upload .png with no backg...
(0) odpowiedzi
2017-11-23 12:11 How to list(<li>) data from a column in a table having newlines(\r +) inside ruby tag? »
My code is @tariff.each do |tar| <li><%= tar.lt_ninety%></li> <%end%> This lt_ninety has a value (hey hello) contain n...
(3) odpowiedzi
2017-11-23 07:11 how to access multiple databases in single rails application in rails 4? »
I am new to rails, don't know how to access multiple databases in rails single application. I will try like this config/database.yml default: &...
(1) odpowiedzi
2017-11-22 22:11 Rufus scheduler fires at the scheduled time (expected ) and fires again after completion of previous run »
I have scheduled rufus cron to run a method (a method to post a complex query in remote DB, retrieves result and, do some processing ) every hour and ...
(1) odpowiedzi
2017-11-22 15:11 rubyzip Zip::ZipFile.open_buffer expects an argument of class String or IO »
I am reading blob data from the database which is zipped(the contents of file is in CSV). The result of my variable looks like this: irb(main):144...
(1) odpowiedzi
2017-11-22 14:11 Rails 4: Generate function from params »
I need to be able to form this function from params: MindBody::Services::ClientService.get_sales(data) where ClientService can be several different...
(1) odpowiedzi
2017-11-21 22:11 add zeros in money field »
I'm working with my database on sql server and I'm showing a money type record that will be the total money, the problem is that when I'm doing the da...
(1) odpowiedzi
2017-11-21 20:11 Ruby on Rails - buttons position on a blog website - SASS »
I want that my "New post" and "Log out" buttons from my blog website to be in the right side of the header. But they are in left, under the "All posts...
(1) odpowiedzi
2017-11-21 16:11 Unable to edit address from company page »
I have standard company has many addresses case, where in my company model I have this : has_many :company_addresses accepts_nested_attributes_for :c...
(1) odpowiedzi
2017-11-21 13:11 Rails 4: Limit field selection through association »
I know you can limit the returned fields in a Rails query by doing: c = Client.select(:id, :user_id, :location_id).where(name: "John Doe") => #&lt...
(1) odpowiedzi
2017-11-20 19:11 Why my delete post function doesn't work? »
I was trying to make a simple blog application using Rails. I added function like "creating a new post", "edit a post" I wanted also to add a delete f...
(1) odpowiedzi
2017-11-20 17:11 Rake tasks, "warning: already initialized constant STATS_DIRECTORIES" »
when executing the rake tasks, it issues this message: warning: already initialized constant STATS_DIRECTORIES ¿how can I load it, using rails 4?. ...
(0) odpowiedzi
2017-11-20 16:11 How to generate Rails migration with Docker »
I'm trying to generate a migration for my Rails 4 project running within Docker. What I've tried so far is docker-compose run web rails g migration...
(1) odpowiedzi
2017-11-20 01:11 Tomcat doesnt find the ENV from the rails database.yml »
In my app I have set my database configuration in the database.yml with environment variables like this: wardeploy: adapter: mysql2 encoding: ut...
(0) odpowiedzi
2017-11-19 22:11 value is updated in DB with ActiveSupport::HashWithIndifferentAccess after serializing »
I am trying to update a columns value to a hash in database. The column in database is text. In model i have, serialize :order_info In controller ...
(1) odpowiedzi
2017-11-19 15:11 Rails 5: not rendering any respond_to json »
I'm using byebug in order to see if the format.json { render json: @items.map(&:title) } is called. def search if params[:search] @items = Item...
(0) odpowiedzi
2017-11-19 03:11 Rails: Do Active Jobs survive reboot »
Just exploring the use of Active Jobs in Rails 4 and I am wondering whether an enqueued job will survive a server reboot. The server OS is Linux. ...
(0) odpowiedzi
2017-11-18 15:11 Rails 5 Nested Attributes not saving find_or_initialize_by method »
I'm sure new in RoR and using Rails 5.0.6 (Ruby 2.3.4p301). Below is problem I'm stuck for the past tons of hours with- I have two tables- locations ...
(1) odpowiedzi
2017-11-18 12:11 Do something for first user visit and till the time the visit ends in rails »
I have a rails application in which I show a notification on each page and it is shown only when the user visits my application for the first time. Fo...
(0) odpowiedzi
2017-11-17 21:11 Axlsx Formatting »
Is it possible to format both a row and column? For instance I am doing a loop that uses the index to style rows different colors based on if it is e...
(0) odpowiedzi