Data dodania Pytanie
2017-02-17 10:02 Format a string containing Phone numbers »
I have a string containing phone numbers separated by ,, phone = "08763843478,+918763843478,08763843478,+918763843478,+918763843478" I want to form...
(2) odpowiedzi
2017-02-16 11:02 Why my user_id is updated to null? »
I have 2 model one for user(amitians) other is about.rb to store their details they have a has_one relationship between them but problem is whenever I...
(1) odpowiedzi
2017-02-16 07:02 Filter view using gem ransack with checkbox »
I should have 3 checkbox OP, SE and PM. If one or two is checked or even all three, the view will filter according to the checked values. These are em...
(0) odpowiedzi
2017-02-16 00:02 Install ImageMagick and start your lane again error when applying icon overlay »
To give some context, I am currently using a program called badge to apply an icon overlay to my app icons. Works great locally on my computer, howeve...
(1) odpowiedzi
2017-02-15 20:02 rails undefined method `[]' for nil:NilClass on association »
After place a association images right after save the product, rails spitting out about method `[]' for nil:NilClass, why is showing nil, for a assoc...
(1) odpowiedzi
2017-02-15 09:02 Custom styles of devise error messages display on sign-up page but don't appear on sign-in page »
I made a helper_class named: devise_helper.rb: module DeviseHelper def devise_error_messages! return '' if resource.errors.empty? message...
(0) odpowiedzi
2017-02-15 04:02 How to insert data in the table without substituting the variable? »
I have a rake file that create a lot of items. namespace :db do namespace :seed do desc "items table" task :items=> :environment do ...
(1) odpowiedzi
2017-02-14 21:02 Rails how to build on iteration »
After trying to save a set of images with dropzone without iteration. i switch to iterating the images and try to save on the loop. but rails spitting...
(1) odpowiedzi
2017-02-14 19:02 NoMethodError in Controller#index »
undefined method `search' for # I am keeps on getting the above NoMethodError in controller index even the method is present in the model. Following ...
(1) odpowiedzi
2017-02-14 14:02 The route.rb doesn't point to my custom RegistrationController »
i build a ruby on rails app base on dookeeper and devise and now I'm going to change the default RegistrationController that is in Devise::Registratio...
(1) odpowiedzi
2017-02-13 21:02 How can I pass confirmation_token for devise with React and Rails »
The application I'm working on is on React and Rails. I'm using devise and I wanted to add a button to resend the confirmation link. I added it in my...
(0) odpowiedzi
2017-02-13 15:02 Make Rails autoloading/reloading follow dynamic includes »
Context I want to add some admin specific code to all models via concerns that are automatically included. I'm using the naming convention MyModel =>...
(0) odpowiedzi
2017-02-13 07:02 Add reference in my migration error »
i create rails new demo_project using using mysql database my credentials was ok i create table my using rake db:create Created database 'demo_projec...
(2) odpowiedzi
2017-02-11 01:02 Monit and private_pub »
to start the thin server with monit is just start program = "/etc/init.d/thin start" but to start private_pub or faye is needed to bundle the rackup....
(1) odpowiedzi
2017-02-10 20:02 How to pass command object to method? »
I have a Command table which look like this in rails console Command(id: integer, created_at: datetime, updated_at: datetime, timeout: int...
(2) odpowiedzi
2017-02-10 19:02 MaxLength/characters for input in medium-editor »
I am using medium-editor. The code to initialize medium-editor class is given as var editor = new MediumEditor(el, { placeholder: false,...
(1) odpowiedzi
2017-02-10 16:02 How to write standalone scripts in ruby and call them in rake tasks and what is a standalone scripts »
I want to write standalone script in ruby on rails and want to call it in rake task. I have seen lot of post about standalone scripts but nothing seem...
(1) odpowiedzi
2017-02-09 23:02 Ruby on Rails - Adding data to model from Javascript »
I'm trying to implement a tag/category system using tag-it, but I'm unsure the best method I should be using to pass the data back to the model. Curr...
(0) odpowiedzi
2017-02-09 15:02 Delete other user except current_user in rails app using devise gem »
I am trying to list all the users who are using my application and delete only those that i want. But every time when i try to delete my user it passe...
(3) odpowiedzi
2017-02-09 02:02 How to represent the SQL value NULL in ActiveRecord#create calls? »
Since seeds.rb is in Ruby, I'm guessing that if I want the effect of insert into foo values (hoo: "ioo", koo: null); I should do something like Fo...
(2) odpowiedzi
2017-02-08 17:02 Assymetric cryptopgraphy and JWT »
So I'm trying to understand how JWT is implemented in a codebase that I'm reviewing. I read this and this However, it seems in this codebase, the cli...
(1) odpowiedzi
2017-02-08 16:02 Ruby unicorn needs to debuggin - server cpu goes 100% »
We have a ruby api server which was working perfectly fine, there was a problem with the elastic search server After fixing this, the server cpu goes ...
(0) odpowiedzi
2017-02-08 11:02 How to specify/override geolocation in capybara and phantomjs »
I want to set my geolocation before visiting a site. How can I do that? A small example script is as follows: Capybara.default_driver = :poltergeist...
(1) odpowiedzi
2017-02-07 20:02 Ruby on Rails: Left Outer Join with Sort »
I have a RoR application for sending emails, I have the models Contacts, Recipients, and Users, whereby a user can have many contacts and a contact ca...
(2) odpowiedzi
2017-02-07 00:02 How validate Model with before_filter? »
I want to make the validation of the Model and move it to before_filter. How in the filter can be assigned to the standard validators presence, etc.? ...
(0) odpowiedzi
2017-02-05 18:02 Ruby and Rail Application Error when Running Bundle install »
I am following a heroku tutorial where I created my rails app. I was asked to use Heroku to get my app live online. But I have troubled to run the co...
(0) odpowiedzi
2017-02-05 07:02 not able to run rake db:create in windows to install fedena »
getting error on running cmd in windows Please help me what to do: here is rake # Add your own tasks in files placed in lib/tasks ending in .rake, #...
(1) odpowiedzi
2017-02-04 20:02 Rails add a path from one controller to another controller »
On a checkout controller if the user did not fill in their address he should be redirected to the address path, but after the redirect rails is output...
(1) odpowiedzi
2017-02-04 18:02 what is the reason for Access-Control-Allow-Origin? »
I've tried to understand HTTP base statements, because that is not working as I expected. E.g. I've put Access-Control-Allow-Origin as http://www.exa...
(1) odpowiedzi
2017-02-03 22:02 Ruby on Rails: Glyphicons Not Displaying »
In my RoR application, I am trying to implement the bootsy WYSIWYG text editor. The editor works, but some reason its images are not displaying, i.e. ...
(0) odpowiedzi
2017-02-03 18:02 How to conditionally delegate Active Records in Ruby »
Is it possible to delegate a function or series of functions to one of multiple other objects based on conditional logic? Ex: class Item has_one...
(2) odpowiedzi
2017-02-03 09:02 How To Download File In DWFX (AutoCad) Format In Rails Active Admin In Rails 4.2 »
Basically I am using gem 'activeadmin', github: 'Zhomart/active_admin', gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid', branch: 'mongoid...
(0) odpowiedzi
2017-02-02 17:02 Ruby on Rails - Create polymorphic comment through partial »
I'm currently trying to implement polymorphic comments within my app, but I'm running into problems with converting my partial form. I was following ...
(2) odpowiedzi
2017-02-02 14:02 Converting SQL Raw query to Rails. Relationship issue »
I am trying to figure it out how to convert this SQL query to Active record. SELECT url_picture FROM ingredients, ingredients_tutorials_steps, ...
(0) odpowiedzi
2017-02-02 13:02 Mongomapper search query improvements »
In my rails project I am using mongomapper gem and Here is the query for searching certain company. Currently, It taking almost half minutes to return...
(0) odpowiedzi