Data dodania Pytanie
2016-12-28 17:12 jQuery Next Siblings Selector (“prev ~ siblings”) »
Html: h4 | Users button.btn.btn-primary.btn-xs.check_button aria-label=("Left Align") type="button" span.glyphicon.glyphicon-chevron-down ...
(1) odpowiedzi
2016-12-28 03:12 How to handle similar urls in rails 4 explicitly »
i am trying to make more semantic url like below:- //with one params get 'location/:location' => 'home#show_by_location', as: :show_by_locatio...
(1) odpowiedzi
2016-12-28 02:12 ActionController::UnknownFormat Error for only format.js »
I am simply using - respond_to do |format| format.js end in my create action. Don't know why but i am getting an the UnknownFormat error. The e...
(1) odpowiedzi
2016-12-27 20:12 nginx + unicorn Entity is to large »
On my test server I have nginx + unicorn set up. And nginx client_max_body_size is set to 20M. But she user uploads file more then 1mb it return error...
(0) odpowiedzi
2016-12-27 09:12 get hierarchy of model having self refrenced parent children association rails »
I have a model Document with the following relationship belongs_to :parent, class_name: 'Document' has_many :children, class_name: 'Document', foreig...
(2) odpowiedzi
2016-12-27 07:12 Rails 4 ActiveRecord Querying Between Times »
I have an orders table with order_date datetime column. Need a query that fetches records across all dates within a specific time range. Example: fe...
(4) odpowiedzi
2016-12-26 20:12 How would I go about figuring out what a Rails controller gets loaded twice »
I am well into the development of my website and have come across a rather strange issue I can't seem to wrap my head around. The logs for Page_1 sho...
(0) odpowiedzi
2016-12-26 19:12 NoMethodError (undefined method `permit' for "test":String): »
I have a simple create action where I'm passing some params, but getting an error of undefined method permit for: NoMethodError (undefined metho...
(1) odpowiedzi
2016-12-26 19:12 Rails join on user column »
I'm trying to get all Activities related to users of the same school (a string on the user object), but the error I'm getting is this: Can't join...
(1) odpowiedzi
2016-12-26 10:12 Match duplication of the uploaded PDF document? »
I am looking at for preventing the duplication of the same pdf document with one of my application. I know it's quite an easy task along with the nam...
(2) odpowiedzi
2016-12-25 23:12 Ruby - Wrong number of arguments 0 for 1 »
I'm trying to Update a single record but I'm getting 'Wrong number of arguments' error. I'm using Postman to try it out throught this url> localhost:...
(1) odpowiedzi
2016-12-25 00:12 Specify custom reference key name in Rails migration »
I attempted to create a custom primary key product_code for my products table instead of allowing Rails to default the table to using id. The products...
(1) odpowiedzi
2016-12-24 20:12 How to build AJAX data from url params? »
Goal: if no param present, do query (this is working), but if param is present do a different query. It seemed pretty straight forward: pass the para...
(0) odpowiedzi
2016-12-24 14:12 Trying to link social media to google search results »
I just learned about how structured data can help your social media pages show up on your google search profile. However, when I test it, I get a mes...
(0) odpowiedzi
2016-12-24 11:12 prawn bounding box get remaining height »
I have been following this stack answer for content overflow, Controlling content flow with Prawn from one column to another, The problem i face is, ...
(0) odpowiedzi
2016-12-24 09:12 Rails collection_check_boxes with Main type as well it's subtypes »
Iam Working on an Event Management System, where i have HABTM between events and employees, I have created a checkbox with employees name like this, ...
(0) odpowiedzi
2016-12-23 19:12 ActiveRecord query to compare a time interval »
How to do something like this using ActiveRecord? Reservation.where("start..finish < 1 hour") start and finish are time records: 2.2.1 :009 &gt...
(1) odpowiedzi
2016-12-23 10:12 Is it possible to run a Rails 4.2 app on Ruby 2.4? »
I want to try out a Rails 4.2 app on Ruby 2.4. However, when I try doing it, I get errors about the json gem version 1.8.3 failing to install. Gem::...
(2) odpowiedzi
2016-12-23 04:12 I am having problems with my views displaying my model »
in this application, clients can have many projects and projects can only have one client. I keep getting this error when I try accessing projects/ne...
(1) odpowiedzi
2016-12-23 01:12 Mysterious: `require "rubygems"` inside controller »
I working on some legacy code (written by someone else) in a Rails 4.1 app and I noticed... require "rubygems" ...at the top of one of the control...
(1) odpowiedzi
2016-12-22 09:12 Rails could not find the inverse association in has many relation »
I have two models (one to many relationship between them) in rails 5, One is ScholarshipGroup and Scholarship model with Admin namespace. Scholarship...
(1) odpowiedzi
2016-12-22 07:12 Ruby Nested Form »
Actually, On saving it must save, but i am getting error and tried to figure out the error where i did mistake. Kindly help me with this error. Th...
(1) odpowiedzi
2016-12-22 02:12 RAILS JSON keep backslash in string »
I have this line in my view form: <%= hidden_field_tag "ng_b2b_configuration[value][endpoints][][patterns][]", raw(".+\\\\.runsheet\\\\..+") %>...
(1) odpowiedzi
2016-12-22 01:12 Nokogiri error install »
I am currently trying to upgrade an existing app from Rails 4.2.3 to Rails 5. then I followed this tutorial : http://railsapps.github.io/updating-rail...
(1) odpowiedzi
2016-12-21 17:12 Ruby Syntax for finding same foreign key values in different tables »
I have a table (peas) containing several foreign keys in each row and listing them in it's index view. I have other tables (carrots) that contain the ...
(1) odpowiedzi
2016-12-21 11:12 rspec doesn't run first test case »
The block #update doesn't run. Why? How to change it to run all of them. #anything works fine. describe UsersController, type: :controller do login...
(1) odpowiedzi
2016-12-21 08:12 Split string with bullet points only. Below there is 7 bullet and that is only sentence. 1 bullet is one sentences »
xlsx = Roo::Spreadsheet.open(file) bookname = xlsx.column(1) tn = xlsx.column(4) tn_data = tn[1] p_tn_data = tn_data.split(/\R+/) puts p_tn_data.to_s...
(1) odpowiedzi
2016-12-20 15:12 Pattern to render multiple coffee »
I have a task model which is related to the user and project models. When I create/update a task, I need to do an update in the view async, not only ...
(1) odpowiedzi
2016-12-20 15:12 Custom model name in Rails 4 validation »
I have a class that looks something like this: class OrganicBipedalLifeform < ActiveRecord::Base # Has the field 'name' validate :presence_of...
(2) odpowiedzi
2016-12-20 14:12 I am not able to load layout while rendering in rails »
can anybody help me out , why i am not able to load particular layout for particular action with render :layout => "application" application.ht...
(3) odpowiedzi
2016-12-20 09:12 How does Rails know the primary key exists in this association according to my schema? »
So I'm a little confused: From my understanding the table on the receiving end of the association (belongs_to) has the foreign key, and that is what ...
(2) odpowiedzi
2016-12-20 05:12 How to extend ActiveJob to access delayed_job's failure/error hooks? »
I'm using rails ActiveJob's delayed_job adaptor, but would like to still be able to access delayed_job's error and failure hooks to trigger notificati...
(0) odpowiedzi
2016-12-20 03:12 Wrong number of Arguments error »
I'm following a tutorial and building a small instagram clone with Rails 4.2.5 But I'm not sure why I keep on getting this Wrong number of arguments ...
(1) odpowiedzi
2016-12-19 14:12 has_many :through association returns empty array on one side and filled array on the other »
I have a relative simple app in which a couple of categories exist and a request is made. A request is put into one or more categories. When I add a ...
(1) odpowiedzi
2016-12-19 10:12 How to write select statement in rails controller »
I want to get only specific column details from ActiveRecord. So I did run the following code. accounts = self.accounts(:select => "id, name,accou...
(3) odpowiedzi