Data dodania Pytanie
2017-03-18 20:03 rails check if url ends with number »
I am trying to create a redirect_to :back that is triggered after a person object is deleted. There are several pages a user can come from before tri...
(1) odpowiedzi
2017-03-18 19:03 Twitter-Like "Reply and Retweet" Rails 3 »
I'm building a sample rails application that mimics some of my favorite apps. I want to implement a photo reply to a photo and a repost of a photo -- ...
(1) odpowiedzi
2017-03-17 14:03 Redirect to page with form fields filled »
I have two models in my application: class User < ActiveRecord::Base has_many :telephones end class Telephone < ActiveRecord::Base belong...
(0) odpowiedzi
2017-03-17 10:03 How to run system command on heroku server? »
I am using OGR2OGR for converting geojson file into dxf format. It is working on local server but on heroku server it is not working. Find code which ...
(1) odpowiedzi
2017-03-17 10:03 rails s says "brunch_watcher.rb:1:in `require': cannot load such file -- pty (LoadError)" in RailsInstaller »
I installed breakfast in my rails project on Windows 10 PC. When I run rails s and it throw exception D:/Development/RailsInstaller/Ruby2.3.0/lib/rub...
(0) odpowiedzi
2017-03-16 23:03 How to run rails commands in production with capistrano 3 and rvm installed »
I'm struggling to get a decent understanding of capistrano. I want to run rails commands in production but it seems that the corresponding binstub is ...
(1) odpowiedzi
2017-03-16 16:03 Rails 3 switching to strong parameters ForbiddenAttributesProtection error not raised? »
I'm attempting to add strong parameters to a Rails 3 application, but it is still permitting all mass attribute assignment and doesn't raise an error ...
(0) odpowiedzi
2017-03-16 12:03 Replace until all occurences are removed »
I have the following strings: ",||||||||||||||" ",|||||a|||||,|" I would like to achieve that all occurrences of ",|" are replaced with ",," The o...
(4) odpowiedzi
2017-03-15 18:03 Accessing rails loop variable in JQuery »
I have the following html code: .panel .row .columns.small-6.medium-4 = city_business_units_select_tag @appointment .columns.small-6.medium-4...
(0) odpowiedzi
2017-03-15 13:03 Rails add new and edit form in bootstrap modal »
I'm new with Ruby on Rails. Now I'm trying to make a simple ToDo List app with bootstrap. Everything works but I tried to render my New task form to...
(2) odpowiedzi
2017-03-14 22:03 Override gem method in rails »
I want to let users add interests -TV shows in this case-, and to make sure they type a correct tv show, I'm going to search imdb first and let them s...
(2) odpowiedzi
2017-03-14 17:03 SQL + Rails - is it posible to get a collection of objects with the values of attributes from other table columns »
class Baby belongs_to :child attr :is_public scope :public, includes(:child).merge(Child.public).where('babies.is_public IS TRUE') end class Ch...
(1) odpowiedzi
2017-03-14 04:03 Rails 3: Get helper_url from path »
I am trying to get the helper_url from the current path. For example if I have the following route: get "user/:user_id" => 'user#user_info', :as =...
(1) odpowiedzi
2017-03-12 10:03 Ruby on Rails can't set my default index when running the localhost »
I am using Rails 5.0.2 and Ruby 2.3.3 version. I created a controller using this command. rails generate controller welcome index It runs successfu...
(0) odpowiedzi
2017-03-12 01:03 Rails Couldn't find Object without an ID »
I'm trying to get the order of shop orders but Couldn't find Order without an ID error appear ActiveRecord::RecordNotFound (Couldn't find Order wi...
(0) odpowiedzi
2017-03-11 13:03 Ruby on Rails Audit on Users model - auditable_type and auditable_id is nil »
I have a Rails app 3.2 that is using Audited and rolify for my user model, whenever there is a CRUD action, the audit table is recording it but it's n...
(0) odpowiedzi
2017-03-10 18:03 Error in Access-Control-Allow-Origin when Angular request to Rails »
I'm using Angular 2 to make an API(rails) request. When I make the http request through angular, I get the following error: XMLHttpRequest cannot loa...
(1) odpowiedzi
2017-03-10 12:03 Value not bind to the view from controller »
I have two select tags as follow <%= f.select(:floor_id, ProjectFloor.find(:all,:order => "name ASC",:conditions => ["project_id = ?", @pr...
(1) odpowiedzi
2017-03-10 08:03 Rails Broadcasting log to Graylog Does not work »
I want to forward all logs to graylog server plus I want to maintain my actual Rails Log. I am using ruby gelf gem. https://github.com/Graylog2/gelf-...
(1) odpowiedzi
2017-03-09 11:03 Preferred Log Level in Production »
What is the most preferred log level in production Rails app. I just read in doc that Logging has a small impact on production.Currently the log level...
(2) odpowiedzi
2017-03-09 11:03 Multiple form in rails »
Here I am trying to create a single form through which I want to save multiple data by one key press. For this I have created form in tabular format. ...
(1) odpowiedzi
2017-03-09 06:03 How to set website logo image on signup mail in rails? »
I am using rails 5 when user is registered in my website i am sending an email for him for account approval.I want to set website logo with email. How...
(2) odpowiedzi
2017-03-08 20:03 How can I call a channel method in a rails controller? »
I have an ActionCable method that subscribes the user. If a new convo is started, I want to subscribe the user to the new channel as well. I can't fig...
(1) odpowiedzi
2017-03-08 18:03 Deleting polymorphic associations »
I have implemented a favoriting system for my rails app by following this great article. Here is my set up: favorite.rb class Favorite < Activ...
(2) odpowiedzi
2017-03-08 16:03 Ruby on Rails: Creating a new children instance using the parent's id/Working with associated classes »
One of my goal on this web app project is to make each tailor add or create products. So I made a MCV structure from scratch for the Tailor for the si...
(1) odpowiedzi
2017-03-07 20:03 Relationship between student, enrollment, course and section table »
I want to get record student enroll the specific course in which section ??? Because one course taught in multiple sections. class Student < Activ...
(2) odpowiedzi
2017-03-07 13:03 NoMethodError: undefined method `path' for #<Bundler::Source::Rubygems:0x7f7af5a6d818> »
Hi I am trying to setup rails application in my local machine, the rails application developed using rails 3.0.1 and ruby 1.8.7 when am trying to run ...
(1) odpowiedzi
2017-03-07 13:03 ROR application with Mysql 5.6 - transaction-isolation with Master -Slave »
We are running a ROR application with Mysql 5.6 and master/slave replication. We are facing deadlock issues. We've successfully tested changing sett...
(0) odpowiedzi
2017-03-06 13:03 angular js files are not loaading in rails application »
I have created an application in rails , i have written small angular example , I have written in partial file and rendered it. But nothing is loadin...
(0) odpowiedzi
2017-03-06 11:03 God is not monitoring delayed_job and restart it based on memory usage »
Here is the god configuration I have done. God.watch do |w| pid_file = "#{Rails.root}/tmp/pids/delayed_job.pid" w.pid_file = pid_file p...
(1) odpowiedzi
2017-03-06 09:03 Why is it a syntax error? »
Simple query like this. MyModel.where('student_id = :id AND from <= :date AND to >= :date', {:id => student.id, :date => day.to_s(:db)}) ...
(1) odpowiedzi
2017-03-05 02:03 Rails how get foreign_key on a mailer? »
On a order confirmation both the seller and the user receive the confirmation but after add the seller_id or buyer_id rails spits out error! i'm look...
(1) odpowiedzi
2017-03-03 14:03 Ruby on Rails: Validate checkboxes in build relationship »
In my RoR application, I have the models Emails, Recipients, and Contacts, whereby when creating a new email the user selects the contacts they want t...
(1) odpowiedzi
2017-03-03 10:03 Ruby on Rails: ActiveModel::ForbiddenAttributesError with strong params »
In my RoR application, I have an update_multiple method that updates multiple records with the user's inputs. However, for some reason I get the error...
(2) odpowiedzi
2017-03-03 09:03 unable to determine if controller based asset exists without .js extension rails »
I have added assets for a controller and wants to include them per request. The problem is that it does not include that assets without writing .js ...
(0) odpowiedzi