#RubyOnRails - 19 May 2018
« Back 1 day Forward 1 day »
[09:23:01] yottanami: I tried to generate an scaffold it just show text box for a relation (refrences). Is any solution to generate a drop down list in ui for one to many relations automatic?
[11:51:34] andywww: i have an arrangement where Trip has_many Ride has_many Waypoint, I want to keep a cache on Ride of the position of the first and last associated Waypoint so i can say “Ride starts at X and finishes at Y” and also a cache on Trip of the first and last Ride, etc. At the minute I’m running these checks after_save on the Waypoint if location_changed? but it feels inefficient due to there being sometimes in excess of 50 waypoints in a ride. Is there a mo
[11:51:35] andywww: efficient way of the Waypoint being able to query wether it is the first or last associated with the ride without having to do if waypoint.ride.waypoints.first/waypoint.ride.waypoints.last on every waypoint save?
[11:56:11] dbugger_: I am using "devise_token_auth" and I cant test for some reason the sign-out process: https://www.hastebin.com/hizecopawo.rb
[15:41:03] FrostCandy: Hello, is therer a command i can use to see all accessable variables? I need to know what @vars I can access from a method. Something like puts @vars_avail
[15:42:58] tbuehlmann: if you're using pry, you can call `ls` when "in" an object to see all kinds of methods and variables
[17:08:22] benlieb: I'm trying to upgrade rails from 4.2.10 to 5.0.7. I've changed the gemfile to 5.0.7, then ran the command `bundle update rails --patch` I'm not sure if this is the proper way to do this. I'm getting a bunch of unresolve issues and not sure how to move forward. Can anyone help?