Data dodania Pytanie
2017-06-19 22:06 RSolr::Error::Http - 500 Internal Server Error »
I am upgrading solr 5.3.1, I am getting following error when I run specs on semaphoreci RSolr::Error::Http: RSolr::Error::Http - 500 Inte...
(1) odpowiedzi
2017-06-19 14:06 PG::UndefinedTable error with associated where clause in Rails 4 »
Here is a very simple relationship which I am attempted to connect and run a where clause on. This worked fine in Rails 3, but is not longer working o...
(1) odpowiedzi
2017-06-19 13:06 How to achieve deep linking in Ruby on Rails »
How can we achieve deep linking of ios applications on Rails server. I am not sure how a deep linking works, But in my understanding it should work l...
(0) odpowiedzi
2017-06-19 03:06 Ruby on Rails - Whitelist some IP-adresses to see Full error reports on production »
In Rails 4 from config > environments > production.rb by changing: config.consider_all_requests_local= true, Devs can turn on Full error reports on pr...
(1) odpowiedzi
2017-06-18 23:06 Rails doesn't set locale in url when I use redirect_to some_path(locale: :default_locale) »
I use routes like this: scope "(:locale)", locale: /#{AVAILABLE_LANGAUGES_AS_STRING}/, defaults: {locale: "en"} do etc So I show a locale in an url...
(0) odpowiedzi
2017-06-18 15:06 How to find a object and insert it in a database »
I’m trying to pick up the shop_id and subscription_id from a cart and insert/save them into the purchase database. I have a cart, line_items and s...
(1) odpowiedzi
2017-06-18 08:06 Rails 4.2: Error with input form with a json field »
In my Rails 4.2 app with postgres, the field ui_layout is converted into json in the db table (psql supports json data type). The ui_layout used to be...
(1) odpowiedzi
2017-06-17 22:06 undefined method and attr_accessor »
I want to collect data from an input which is not in my model. So, I tried to use a "attr_accessor" but it's don't work and I don't know why ... There...
(1) odpowiedzi
2017-06-17 18:06 Rails Union Table and sort by common key »
I have two models in rails application Match and Round as follow Match(id, team1, team2, series_id, event_time, event_lock_time, match_type, created_...
(1) odpowiedzi
2017-06-17 06:06 I'm trying to render two columns of information in my rails app »
So, I have an app that is trying render 2 (or maybe more if needed) columns using a loop. It does one column and looks pretty good, but I want the op...
(1) odpowiedzi
2017-06-16 21:06 How can I make follow form work with a list »
I have a relationship model that follow users back n forth now it works very well when I use it in users#show in my view just like this screenshot ...
(0) odpowiedzi
2017-06-16 17:06 Rails 4 Whitelist IP's to Single Route »
I have a form within my public page that I would like to lock down to internal IP ranges. I have been looking around at the answers to other questions...
(2) odpowiedzi
2017-06-16 11:06 ROR:How to copy data in a table from one database to other table in which is in another database which has different table attributes in heroku? »
I have Products table with col_1, col_2, col_3 as attributes in one database and in another database I have products table with product_name, product_...
(1) odpowiedzi
2017-06-15 17:06 Chartkick Datepicker/Range Selector - Possibility to choose dates to show data »
I am using ahoy gem to track visits & chartkick gem to show the data to users. In users dashboard page, I have around 3-4 charts and each of them...
(1) odpowiedzi
2017-06-15 09:06 Put gem class into namespace »
To my Rails Gemfile I added a new gem. It is used like this: Email::Client The issue I'm having right now is that I also have a class in my rails a...
(1) odpowiedzi
2017-06-15 05:06 Giving conditions in model for values in database »
I want to give conditions to my fields in model so that when i define a value from my controller new action it automatically changes the value of anot...
(1) odpowiedzi
2017-06-14 22:06 How to ActiveRecord get query values rather than models? »
I have a query that is working as expected, but the result is coming back as an array of models, rather than the values. The query transforms a date, ...
(0) odpowiedzi
2017-06-14 19:06 Rails - Show number of users currently visiting a page »
I got a page in my App where users can chat. Now I want to display the number of Users that are currently viewing the chatpage. Is there a way to do t...
(1) odpowiedzi
2017-06-14 17:06 How to cache a ActiveRecord model object which contains carrierwave uploader to Redis »
I have a user model which has a carrierwave uploader for storing ths users profile picture class User < ActiveRecord::Base mount_uploader :pro...
(1) odpowiedzi
2017-06-14 15:06 Why Page and Action Caching has been removed from Rails 4? »
Why Page Caching and Action Caching are removed from Rails 4. How do we achieve the caching now after Rails 4 ? ...
(0) odpowiedzi
2017-06-13 21:06 Polymorphic has many though with STI in rails »
I've faced unusual situation with rails association and created simple sample to show that. Assume we have 4 models: 1) list.rb class List < App...
(1) odpowiedzi
2017-06-13 14:06 How can I create ActiveRecord for the following sql »
How can I create an ActiveRecord Query for the following Sql query SELECT device1.* FROM devices device1 WHERE device1.id = (SELECT MAX(device2.id) ...
(1) odpowiedzi
2017-06-13 01:06 Rails 4: why is one way of rendering partials so much faster? »
I'm not sure if this is a Rails specific issue, hence the reason I tagged it ruby as well. I'm rendering a collection of event records via a partial....
(1) odpowiedzi
2017-06-12 23:06 My User_id is updated to nil every time I refresh my page in Rails »
I know what is causing this issue, but can't find the working alternative of it. I will describe the problem and hope for a good answer. So, I have ...
(0) odpowiedzi
2017-06-12 17:06 ruby on rails extending module in class instance »
using ruby 2.2, rails 4.1 I have a search result class that I would like to use to format the correct results depending on the type of search, ie ful...
(0) odpowiedzi
2017-06-12 17:06 Getting all users from db that participated for an activity »
I am currently facing the following problem: Users are able to create activities. Other users have the possibility, to participate the activity. I now...
(1) odpowiedzi
2017-06-12 10:06 How to use multiple databases for Rails server? »
I have a Rails application which is using PostgreSQL database and a huge user base is expected. Is there a way to use multiple databases, may be one d...
(2) odpowiedzi
2017-06-11 21:06 Struggling with nested parameters as a result of strong parameters in rails 4 »
I have just updated from Rails 3 to 4, and I am struggling with nested parameters as a result of strong parameters in Rails 4. My app worked fine, how...
(0) odpowiedzi
2017-06-11 19:06 Subscription class not found 'MyChannel' in ActionCable »
I am facing a problem while working with Action Cable, whenever I run my program I receive an error that says Subscription Class not found Conversatio...
(2) odpowiedzi
2017-06-11 12:06 Save a model and related models in Rails using Angular 2 »
Requirements: Rails 4 Angular 2 MongoDB Mongoid I have a one to many relationship, one ParentModel has many ChildModels. I want to save them ...
(0) odpowiedzi
2017-06-10 21:06 Wicked pdf gem custom size generating blank screen »
I have a method to render a pdf with custom sizes format.pdf do render pdf: 'layout', page_height: 20, page_width: 25 e...
(1) odpowiedzi
2017-06-10 19:06 Rails compatible photo archive »
I'm looking for a free cloud based photo archive that would allow me to access folders (or albums). Preferably something that would allow me to just ...
(0) odpowiedzi
2017-06-10 04:06 How is the best way to refactor a long string line in ruby? »
I have a line of code like this "#{envelope_quantity} - envelope #{Budget::util_name(envelope_size)} #{Budget::util_name(envelope_paper)} #{Budget::u...
(3) odpowiedzi
2017-06-09 16:06 Rails: Query using relation or directly using #where »
I am from UI/ColdFusion background, sorry if I am asking a silly question. Let's say we have two models Book & Page and a book has many pages. No...
(2) odpowiedzi
2017-06-09 13:06 rails query not in statement formatting correct »
I do this: check1 = inquiries.select("question_id").where(:membership_id => self.id) This returny a active Record array with entries like th...
(2) odpowiedzi