Data dodania Pytanie
2017-08-13 09:08 Rails: Respond with js to Ajax request »
I encountered some weird behaviour when using an ajax request to get a response from a rails controller action. $.ajax({ type: 'GET', url: '/...
(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 17:08 Rails Optimize query and loop through large entity »
I have a method that outputs the following hash format for charting. # Monthly (Jan - Dec) { "john": [1,2,3,4,5,6,7,8,9,10,11,12], "mike": [1,2,...
(1) odpowiedzi
2017-08-12 13:08 Ruby on Rails || Jquery and JavaScript libraries not working »
I've created a page on Codepen to be later added to my Ruby on Rails app ( https://codepen.io/salman15/pen/evQVLV ), where all the code works fine. A...
(1) odpowiedzi
2017-08-12 12:08 Rails 5.1 with Webpack: accessing the CSRF token »
I'm trying the new support for Webpack in Rails 5.1 to manage my Vue application. I don't at the moment see how to easily access the CSRF token. Sugge...
(1) odpowiedzi
2017-08-12 09:08 At what point does a controller class instantiate a controller object in a Rails web app? »
Learning Rails, the point at which a controller gets instantiated is unclear to me whereas, the point at which a model gets instantiated is somewhat r...
(3) odpowiedzi
2017-08-12 09:08 ArgumentError: unknown keyword: use_route after rails 5 upgrade »
I searched about use_route for controller specs and came to know, this has been removed without any replacement. How should this type specs be replace...
(1) odpowiedzi
2017-08-12 03:08 Trouble rendering to Index.html.erb from Index.js.erb in Rails Using Ajax Authenticity Token »
Basically, I have a single page TODOAPP that is displayed in Rails on Index.html.erb and I'm trying to render the instantiated TODO objects through in...
(2) 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 01:08 change has_many to has_one relation »
I'm trying to convert models from has_many relation to has_one here is my code models class Activity < ActiveRecord::Base has_many :product_ou...
(1) odpowiedzi
2017-08-12 01:08 Referencing parent activerecord after using :through »
this is the structure defined in my model. class Event < ActiveRecord::Base has_many :messages has_many :conversations, through: :messages...
(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 20:08 How can I launch a rails console for an app deployed on Tomcat? »
I want to get an interactive rails console on a deployed JRuby on Rails app on Tomcat deployed as a war file. ...
(1) odpowiedzi
2017-08-11 19:08 sending email not working with rails »
I built an example app to try to make the mailer work. The app is hosted on https://blooming-brushlands-80122.herokuapp.com, and the source code is he...
(1) odpowiedzi
2017-08-11 15:08 Devise different layouts for sign up and user settings page »
I am using Devise 4 and Rails 5. For my sign up page I have one layout and for the registration edit page another layout. I think this is very common...
(0) odpowiedzi
2017-08-11 15:08 Installing fontcustom on centos 7 returns error »
I try to install font custom tool for generating font icons from svg. When I try to use sudo gem install fontcustom on my cento7 machine I get the err...
(2) odpowiedzi
2017-08-11 13:08 Rails Rspec and Geocoder IP lookup »
Geocoder DOCS explain how to fake a Geocoder lookup with Street addresses, but it doesn't seem to work with IP addresses. This is my spec/support/geo...
(1) 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
2017-08-11 05:08 rspec testing with strong parameters »
RSpec test: get(my_controller_path, params: {}) is expected to produce params {} in my_controller request. Instead if produces params { my_controller...
(1) odpowiedzi
2017-08-11 03:08 Rails: How to loading Animations with jQuery UJS in form submit button? »
I was working on trying to use jquery on my Login form button so that when a user clicks "Log In" the text changes into "Signing In.." for a better us...
(3) odpowiedzi
2017-08-11 02:08 Heroku - bundler: failed to load command: unicorn »
Ruby 2.3.1 Rails 5.1.2 Been trying to deploy my rails app into heroku by setting its multi buildpack (heroku buildpacks:set https://github.com/herok...
(1) odpowiedzi
2017-08-10 23:08 Sort with ransack gem using query »
I need sorting records, I used the ransack gem with single data in a single table, but when I use querys that involve several tables in the database I...
(1) odpowiedzi
2017-08-10 19:08 how to order of has_many through by a specific field »
I have 3 models: member, team, and team_enrollment. The structure is as follows: class Member < ApplicationRecord has_many :team_enrollments ...
(1) odpowiedzi
2017-08-10 19:08 Adding multiple products to cart in Spree store (Rails 4.2.5.2 / Spree 3.1.0) »
I'm trying to create a section on the Product show page that will display 3 products, with checkboxes beneath them, and a button to add the selected o...
(1) odpowiedzi
2017-08-10 19:08 Rails 5 - Using scope method with associated models query »
I am trying to create a scope method that queries only records that have been recently updated (or their associated models have been recently updated)...
(1) odpowiedzi
2017-08-10 18:08 How to configure travis with Rails when 2 databases are specified? »
I have a Rails application, running Rails 4.2.1. It's using the secondbase gem to define 2 database connections. When I deploy changes to a branch, i...
(0) odpowiedzi
2017-08-10 17:08 Preventing caching a random SQL query in Rails »
I'm trying to choose a random track but want it to avoid matching a specific record. This is my code, but it keeps returning the CACHE of the query s...
(2) odpowiedzi
2017-08-10 17:08 Guard-spec and ember does not works well together »
Rails 4.2.7 guard-rspec 4.7.3 Since I installed ember-cli-rails, the ember app prevent guard-spec to run and triggers hundreds of errors. Here is one...
(0) odpowiedzi
2017-08-10 16:08 rails 5, remote: true form empty data »
I am trying to migrate Rails 4.2 application to Rails 5.1. In rails 4.2 we heavily used JQuery. At the moment I am struggling to make the forms, with ...
(1) odpowiedzi
2017-08-10 15:08 Getting syntax error, unexpected ':', expecting '=' in Ruby »
I am very new to Ruby and trying to run a script ,When I am trying to run a Ruby script like below, I am getting > ruby test.rb test.rb:53: synt...
(1) odpowiedzi
2017-08-10 15:08 Ruby on Rails -- independant controller method for static pages »
So basically I want to use a simple controller method with no params: def create_message @a = Message.create(:body => "Hello") @a.save re...
(2) odpowiedzi
2017-08-10 15:08 Where to set java options in jruby on rails? »
We are working on jruby on rails app. Want to set JRUBY_OPTS or JAVA_OPTS. I can easily use the export to set them on my machine, but I'd like these ...
(1) odpowiedzi
2017-08-10 13:08 Rails4 Rspec Controller Tests No route matches »
All. I am a beginner developer of Ruby on Rails. There is an error that I have been struggling and not been able to solve. I am trying to see if an v...
(3) odpowiedzi
2017-08-10 13:08 Inline CSS is not working with gem 'htmltopdf' »
My requirement is to download docx file and should be open on Microsoft word: I am using following gems: gem 'responders' gem 'htmltoword Controll...
(1) odpowiedzi
2017-08-10 13:08 Rails fragment caching fails on non us-ascii chars »
I'm having issues with fragment caching in my Rails app. I've discovered that, if I have some language special chars like german letter "ß" caching f...
(0) odpowiedzi