#RubyOnRails - 18 June 2017
« Back 1 day Forward 1 day »
[01:18:55] MasterAsia: What would be the primary difference between nginx logs(reverse-proxy) and application logs(from puma/rails?)
[06:17:15] arup_r: any tips how can I invalidate the cache https://github.com/aruprakshit/memcache-example/blob/master/app/controllers/contacts_controller.rb#L66-L81? when any of the contact attribute will be modified?
[14:43:48] sondr3: dumb question, I'm currently learning RoR and want to render some text to HTML in the def show method but I can't get it to work
[14:44:04] sondr3: I know I should do render html: something something but not sure how to get it to works
[15:39:20] no-dashes: BTW: If you're lazy, you could consider using slim istead of erb – that boosts productivity.
[18:09:21] art-solopov: Hello! Not sure if this is the right place to ask, but what are your opinions on dry-rb's dry-struct vs Trailblazer's Reform? I'm starting a new pet project and wondering which one to adopt.
[18:45:27] dionysus69: do I need to use redirect like this get routeName, to: redirect(static Url) if I want to make a link to static file in public dir?
[20:47:12] art-solopov: So, I'm trying to use dry-struct for my form objects, and I'm stuck at writing the view for a form. There are some errors with `form_for` tag. Are there any resources concerning integrating dry-rb with Rails' form helpers?
[22:30:28] linetrace: how do get a "AS" column to show up as virtual attribute in ActiveRecord select() results?
[22:38:03] xco: why am i getting “ArgumentError: When assigning attributes, you must pass a hash as an argument.” on “@user.attributes = params[:user]”?
[22:45:56] linetrace: for my select() "AS" column not showing up question: https://gist.github.com/morgant/913e7109266482ac434125db3b5e77fe