Data dodania Pytanie
2017-09-14 12:09 Timing issue in active admin gem »
With in admin panel when I create a new user at 11.00 am as per my local timing is shows user created at 5:47. I found one solution config.time_zone...
(1) odpowiedzi
2017-09-14 11:09 Rails geocoder gem show results »
I'm using the geocoder gem in order to set the longitude and latitude from the address: class Item < ApplicationRecord geocoded_by :full_addre...
(1) odpowiedzi
2017-09-13 21:09 ActiveRecord is not reloading nested object after it's updated inside a transaction »
I'm using Rails 4 with Oracle 12c and I need to update the status of an User, and then use the new status in a validation for another model I also nee...
(0) odpowiedzi
2017-09-13 17:09 Google api client calendarv3 event initialization argument error »
I'm using google_api_client 0.10.3. I have this call: Google::Apis::CalendarV3::Event.new({ 'summary' => summary, 'description' => descript...
(1) odpowiedzi
2017-09-13 17:09 Rails Has Many Through date field of one model falls between dates of other model »
Setup: I have a Job and a Price model where the Job has two fields start_date and end_date and the Price has another date field effective_at. The Job ...
(1) odpowiedzi
2017-09-13 02:09 Post form data to Rails backend from outside app »
For marketing reasons we want to a/b test some landing pages. Fairly typical but, ideally, we'd like the page to post directly into our Rails backend ...
(1) odpowiedzi
2017-09-12 23:09 Error In Show And Edit Articles »
I have an error when I press show articles and when I press update articles when editing the article. I will show you the image and my code if you thi...
(1) odpowiedzi
2017-09-12 18:09 Error Handling - Email LDAP - Rails »
I'm beginner in Ruby on Rails and I need help In my project, I need to catch on LDAP the e-mail of user. class User < ActiveRecord::Base # Incl...
(1) odpowiedzi
2017-09-12 09:09 Implement array and iterate »
I have this Ruby code that I want to use: if args[:remove_existing_trxs] == 'true' Acquirer.delete_all Company.delete_all Currency.delete...
(2) odpowiedzi
2017-09-11 20:09 Two ordering parameters - Rails »
I have an application, where I need to sort ideas on the main screen: By the number of votes for an idea By the descending date This is my control...
(1) odpowiedzi
2017-09-11 18:09 Ruby On Rails Error 204 generate an image into a new view from controller »
I have in my controller a method to create a custom qr def generate_qrcode() require 'rqrcode' qrcode = RQRCode::QRCode.new('ejemplo') image = qrcode...
(3) odpowiedzi
2017-09-11 13:09 Favourite Model #No route match {:action=>"favorite", :controller=>"microposts", :id=>nil, :type=>"favorite"} missing required keys: [:id] »
I got this error ActionController::UrlGenerationError in StaticPages#home No route matches {:action=>"favorite", :controller=>"microposts", :i...
(1) odpowiedzi
2017-09-10 23:09 Ruby on Rails - Make view accessible to certain users »
In my application I have models File & FileAccess. User A can upload files and give access to many other users (by other users asking for access)....
(1) odpowiedzi
2017-09-10 21:09 Rails extract values with join associations »
I have a rails join table between 2 models superhero and superpower. Now I have 3 different superpower id and I want all the superheroes which have al...
(2) odpowiedzi
2017-09-10 18:09 Rails inconsistent model associations call »
I have a rails model for a user as: class Player < ActiveRecord::Base has_and_belongs_to_many :character_factors has_and_belongs_to_many :stat...
(1) odpowiedzi
2017-09-10 14:09 Sort a resource based on the number of associated resources of other type »
I have a Movie model that has many comments, I simply want to sort them (Movies) using SQL Inside active record based on the number of associated comm...
(1) odpowiedzi
2017-09-09 13:09 in search this is not working in jquery datatable in rails 4 »
"search": {'caseInsensitive': true,'regex': true}, this is not working in my project and my search is working as case sensitive how to figure it out ...
(0) odpowiedzi
2017-09-08 20:09 Ruby on Rails - Add & Remove record from table when click twice »
In my application I've a button called Interested. When this button is clicked it'll add a record to interests table with user_id & post_id. This...
(2) odpowiedzi
2017-09-08 19:09 Ruby on Rails, missing FROM-clause entry for table "pages" »
trying to resolve this pesky bug after converting a Rails app from 3.0 to 4.29 I've got a Scope attached to the model PostType that's complaining it ...
(1) odpowiedzi
2017-09-08 08:09 Rails how to query has_many instance in condition of the instance not exist »
Please help! I need to combine those query clauses below into one. Foo.where('bar_id IS NULL') Foo.joins(:bar).where('bar.daily_budget > bar.dai...
(3) odpowiedzi
2017-09-07 19:09 What does specifying the type in an RSpec actually affect? »
I have never been sure what the difference between these options are RSpec.describe V2::DirectMessagesController, type: :controller vs RSpec.descr...
(1) odpowiedzi
2017-09-07 17:09 Is it possible to filter (search) results at query level when using grape gem in Rails 4 app? »
I am using gem grape to build out an api for an app. i am able to get all the endpoints i want working, however it has been difficult to get search fu...
(0) odpowiedzi
2017-09-07 15:09 Rails: elasticsearch query block error »
I'm using elasticsearch on my rails app and every time I try to add a block to the def self.search(query) I get an error: [400] {"error":{"root_cause...
(0) odpowiedzi
2017-09-06 19:09 Rails: Elasticsearch::Transport::Transport::Errors::BadRequest in Search#search »
I'm using the elasticsearch gem on my rails app. I'm trying to implement a basic search and sort the results by the distance from the current location...
(0) odpowiedzi
2017-09-06 17:09 How convert 'link_to' to Absolute in Rails »
I've a problem in my program, I add in DB a link, for example, "www.google.com" and when I clic in the link I'm redirected to localhost:3000/www.googl...
(3) odpowiedzi
2017-09-06 11:09 Xeroizer::ApiException : QueryParseException: No property or field 'inv_id' exists »
I am Trying to get all the invoices in a single API hit. Because, for every user having 100's of invoices. It will exceed the API limit (Minute Limi...
(1) odpowiedzi
2017-09-05 13:09 How to disable previous date on edit using datetime picker »
I am using date time picker.on edit page the selected value is not displaying. when I check the code element, I am seeing the result in value attribu...
(1) odpowiedzi
2017-09-05 13:09 How to redirect user after registration in apartment gem »
I am using apartment gem to achieve multitenancy. When registers on the app I want to redirect him to his own url example for localhost (xyz.localhost...
(1) odpowiedzi
2017-09-05 12:09 How can I overwrite will_paginate page_entries_info method? »
I have a problem with the display of the text messages from page_entries_info method. I want to change text in that. Any Idea? ...
(0) odpowiedzi
2017-09-04 22:09 import records using .xlsx »
I am trying to import records using excel sheets and so far everything works quite well, the problem comes when I try to add related records to the pr...
(0) odpowiedzi
2017-09-04 16:09 Rails customize json generating using eagerloading rails »
I have a model User and another Images and relationship in between both of these as: User has_many :images Image belongs_to :user Now I'm writing ...
(0) odpowiedzi
2017-09-04 09:09 Search In a column which stores an array »
In my table professional_infos table there is one column primary_skill_ids which stores an array of skills for particular user. I want to list all the...
(1) odpowiedzi
2017-09-03 12:09 Running Rails Console Gets Killed »
When i run on my production servers the command: bundle exec rails c production After few seconds i get "Killed", the server has 32GB RAM and have ...
(0) odpowiedzi
2017-09-03 09:09 Two references of the same model in another Rails: 4 »
I ask if it is good to have two references of one model in another and if it can do it how do I do it? Problem: I have a record that will be controll...
(1) odpowiedzi
2017-09-02 22:09 how to fetch data quickly in join query? »
I have 3 tables users, orders and comments every tables has 10087250,24949600 and 26532000 much records, I made this query to counts comments on every...
(3) odpowiedzi