Data dodania Pytanie
2017-05-15 14:05 How to set offset rule using "recurring_select" gem »
How to set offset rule using recurring_select gem? Say I have set some recurring event which falls on Saturday and Sunday on any upcoming month, then ...
(0) odpowiedzi
2017-05-15 03:05 Ruby on Rails inheritance? »
I've seen a bunch of rails "inheritance" models but any of them makes sense for me What is the right way to use inheritance in rails? Model Person w...
(0) odpowiedzi
2017-05-14 19:05 Rails aborted error message »
I'm getting an error while running the following test: $ rails test:models Below is a sample of the error: Run options: --seed 40805 Finished in 0...
(1) odpowiedzi
2017-05-14 01:05 Rails How to fix Missing mobile template? »
i'm trying to update the user information when on mobile but rails log show: someone know why this happen on mobile mode? Missing template users/...
(1) odpowiedzi
2017-05-13 06:05 Intalling Rails in windows activesupport requires Ruby version >= 2.2.2 »
I have a problem installing rails on my computer. ruby -v ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32] I get this error message : ...
(1) odpowiedzi
2017-05-12 20:05 Changing the data of a f.label after the user presses f.submit »
So I currently have this code in the html.erb: <%= f.label :user_id %> <%= f.field :user_id %> I want the user to enter an...
(1) odpowiedzi
2017-05-12 16:05 Plot a Morris chart line in RUBY ON RAILS »
i'm using the MORRIS JS to plot a chart line in my Ruby On Rails Project I retreive Data from my Database : MYSQL and want to plot it in Morris JS ...
(0) odpowiedzi
2017-05-12 00:05 C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- watir (LoadError) »
I'm new to Ruby and I have very little practice. I'm having difficulty compiling the instabot that is demonstrated in the following video: Build an In...
(1) odpowiedzi
2017-05-11 13:05 Rails route not found even when its present »
My following API route is not found when hit with CURL or POSTMAN client Started POST "/api/users/register_handheld" for 181.74.100.34 at 2017-05-11 ...
(1) odpowiedzi
2017-05-11 09:05 How to return the correct fields in Rails API? »
I have these two tables - User, Accounts. User contains an authentication key, Accounts contains the list of accounts. I am trying to get the list...
(1) odpowiedzi
2017-05-11 02:05 Why won't the Delayed Job error callback execute? »
I am trying to follow this guide about handling API rate limits with Delayed Job. Here is my job: # app/jobs/mailer_job.rb class MailerJob < Stru...
(1) odpowiedzi
2017-05-10 23:05 Rails how create a fallback helper? »
I'm trying to create a fallback helper for a object but on the page just shows the image broken link and the assets url. so, know how? def display_im...
(1) odpowiedzi
2017-05-10 11:05 SignatureDoesNotMatch Error while downloading file using X-Accel-Redirect »
There are several questions related to this but this use case is slightlt different. In Rails - In my controller I set response header explicitly : ...
(0) odpowiedzi
2017-05-09 20:05 rails 3 application behaving differently with the elasticsearch 1.7 using elasticsearch-rails and elasticsearch-model gem »
Thanks for reading it. I am trying to implement the keyword search in my rails application. I wanted to categorize the results one after the other bas...
(0) odpowiedzi
2017-05-09 12:05 How do I convert this SQL query into Active Record statements, there are many answers those are not help me out? »
jyguhhh hjja jjjjjjjjkjkjkjkjkjkjkjkjkjkjkjkjkj ...
(1) odpowiedzi
2017-05-08 20:05 Rails how to make conditional inside iteration? »
i'm trying to use a conditional inside a iteration but did not worked so, here the scenario: in this case if the if the order or the product is prese...
(1) odpowiedzi
2017-05-08 12:05 Unable to Send mails in rails? »
I am trying to send welcome mail when user registers but everything seems fine the same code i have used in different project as well but the mail is...
(1) odpowiedzi
2017-05-07 23:05 Validate only numbers »
In one of my rails models I have this :only_integer validation: validates :number, presence: true, numericality: { only_integer: true } This valida...
(1) odpowiedzi
2017-05-07 22:05 LoadError: cannot load such file -- roo »
I have been troubleshooting a problem in my Ruby on Rails application for the last 2.5 days. Having used resources online and here on stackoverflow, ...
(1) odpowiedzi
2017-05-06 14:05 How to create and implement token based authentication api in rails for androidapp »
i want to make a rails api for android app,but iam confused with the authentication,because of use of devise in my rails web apps iam totally blanked ...
(0) odpowiedzi
2017-05-06 12:05 rails OAuthException: Error validating access token: Session has expired »
I have not used omniauth access_token=xyz" message="hi#" user_graph = Koala::Facebook::GraphAPI.new(access_token) begin object_from_koala = user...
(0) odpowiedzi
2017-05-05 19:05 redirect to an item of edit page after creating object ruby »
I need to redirect to a specific item in my edit page, I used redirect to but I can't add the #tab_id this is my source code : if @song.save fla...
(1) odpowiedzi
2017-05-05 15:05 Rails how to automatically associate the objects in the model? »
I'm trying to associate the order obtecj with pdata object in the creation of the order object and after the creation of the pdata oject. but after t...
(3) odpowiedzi
2017-05-05 10:05 How to find two different matched data for one parent id? »
Hi i have to search iron and van. In my search condition iron is in one row and van is in another row. Both are have the same parent id. How did i fin...
(3) odpowiedzi
2017-05-04 15:05 bundle is locked to yaml (4.2.2) »
I have found a project on github that use it. This project includes file named Gemfile.lock that contains these lines GEM remote: https://rubygems....
(0) odpowiedzi
2017-05-04 13:05 Run code in block only when certain condition »
Here I want to show you a demo code: if ENV["PRODUCTION"] user.apply_discount! product.update! else VCR.use_cassette(vcr_cassette) do user.a...
(2) odpowiedzi
2017-05-04 11:05 Google APi ruby client »
I have a method to create folder on Google drive as soon a create method is hit. I want the folder to created once the batch is saved. Below is the co...
(0) odpowiedzi
2017-05-03 22:05 Commutability and order of active record scopes »
Is the place of the "sorting" "filters" (Desc or Asc) inside a Rails' Active Record query important in terms of performance and logic ? For example i...
(1) odpowiedzi
2017-05-03 21:05 Rails Storing data in two table in one text_field »
<%= f.text_field :invoice_amnt, :short_over, class: "form-control",placeholder: "Enter Invoice Amount", :required=> true, data: {autonumeric: tr...
(0) odpowiedzi
2017-05-03 15:05 create an uneditable character in ruby textfield »
I need to create an uneditable semicolon in Rails text field for a date. For instance, the user can enter the hours and the minutes, while the semic...
(0) odpowiedzi
2017-05-02 17:05 How do I rollback changes in Ruby on Rails? »
I'm using Cloud9 and I'm fairly new at it and I wrote a "rails g Scaffold" statement and ran it but I forgot to make changes before that. Is there any...
(1) odpowiedzi
2017-05-02 17:05 SQLite3 DB starts throwing SQLException on write after a few days in production »
We have a small internal Ruby on Rails service that uses a SQLite 3 database. After running perfectly for a few days, it starts throwing the following...
(0) odpowiedzi
2017-05-02 15:05 Throws wrong number of arguments error »
Rails active record throws the following error. irb(main):030:0* Subscription.where(valid_until: nil).where.not(activated_on: nil) ArgumentError...
(1) odpowiedzi
2017-05-01 21:05 Rails has_one :through association: setting the associated object will delete the joined object »
I have class CarpoolGroup < ActiveRecord::Base has_many :cars end class Car < ActiveRecord::Base belongs_to :carpool_group has_many :car...
(2) odpowiedzi
2017-04-30 06:04 DEVISE sign in not working »
Hi I'm very new to rails so I'm not sure what I'm doing wrong. I'm working on an app and have implemented very basic devise. The console output indica...
(1) odpowiedzi