jtperreault

Activity Graph

Page 1 of 3 | Next »

2019-05-31

[12:25:59] jtperreault: Ping timeout: 252 seconds
[12:27:55] jtperreault: has joined #RubyOnRails
[12:27:55] jtperreault: has joined #ruby

2019-04-13

[16:49:42] jtperreault: *.net *.split

2019-04-12

[13:34:49] jtperreault: terens: lean on ActiveRecord as much as possible, would be my vote
[13:35:24] jtperreault: terens: https://guides.rubyonrails.org/active_record_querying.html#joining-tables

2019-03-22

[04:33:18] jtperreault: Ping timeout: 250 seconds
[04:39:34] jtperreault: has joined #RubyOnRails
[04:39:34] jtperreault: has joined #ruby

2019-03-19

[00:08:16] jtperreault: funkytwig: try <%= @walk_section.walk_id %>
[00:13:05] jtperreault: funkytwig: yeah, I think you need to setup the opposite side of the association there on your models
[00:13:50] jtperreault: funkytwig: you have belongs_to :walk on WalkSection, but on Walk do need to add has_many :walk_sections
[00:29:52] jtperreault: funkytwig: awesome
[00:30:44] jtperreault: funkytwig: you're welcome
[00:39:52] jtperreault: funkytwig: there is, yes

2019-03-18

[19:06:58] jtperreault: Net: It wouldnt delete it, no.
[19:07:51] jtperreault: Net: But I believe it would associate the create :foo to that instance of bar
[19:08:12] jtperreault: Net: leaving the previous :foo dangling, if you will
[19:09:57] jtperreault: funkytwig: yes, you can do that. what are you trying to acheive though? you can do quite a lot in routes.rb so that a particular route goes to whatever controller you'd like
[19:11:11] jtperreault: funkytwig: the guide may be helpful for you: https://guides.rubyonrails.org/routing.html#non-resourceful-routes
[19:14:41] jtperreault: funkytwig: what's your question? how to create a controller without the CRUD actions?
[19:34:29] jtperreault: funkytwig: I'd start by playing around with the generator for controllers/pages. Sounds like that will get you pretty far.
[19:34:36] jtperreault: funkytwig: https://guides.rubyonrails.org/command_line.html#rails-generate
[19:35:14] jtperreault: funkytwig: you can call it whatever you like, doesnt have to be after a model. in the controller you can utilize whatever model you'd like to
[22:53:56] jtperreault: funkytwig: you got a backtrace you can post?
[22:54:07] jtperreault: funkytwig: code? anything?
[22:56:18] jtperreault: funkytwig: walk_section_controller.rb would be good too, so we can see the line it errs on
[23:01:05] jtperreault: funkytwig: I'd be curious about the models, I assume you have associations setup between Walk and WalkSection ?
[23:02:37] jtperreault: funkytwig: I'd try to do something along the lines of this: https://gist.github.com/jtperreault/7ce89a1d57fe374496529fd5eb3ffb43
[23:03:33] jtperreault: funkytwig: in this case, we use the .find() method rather than .where() which will return the WalkSection instance with the ID you pass in, rather than an Array of results which you would get using .where()
[23:04:20] jtperreault: funkytwig: and then on the next line, assuming you have the model associations, we just call for the Walk instance based on the WalkSection that you found
[23:11:03] jtperreault: funkytwig: not sure what you're asking... would need to see the view files, and model files too for the whole picture. otherwise im just making my best guess
[23:43:16] jtperreault: funkytwig: @walk would be an instance of the Walk model in that case.
[23:43:35] jtperreault: funkytwig: I'm making a lot of assumptions here...
[23:45:19] jtperreault: funkytwig: but if @walk returns nothing in the view then that'd require some more looking... I would open up a rails console, create an instance of the WalkSection in question, and then see if you can get a Walk instance by calling .walk
[23:47:30] jtperreault: funkytwig: .where returns an array, so you'd have to do something like @walk_section[0]
[23:48:31] jtperreault: funkytwig: or in your view you could loop through them @walk_secion.each { |ws| <%= ws.attr%> }
[23:57:46] jtperreault: funkytwig: yep
[23:58:06] jtperreault: funkytwig: well there ya go, you have a walk section
[23:58:16] jtperreault: funkytwig: ahh
[23:58:27] jtperreault: funkytwig: my standby for that is the .inspect method
[23:59:00] jtperreault: <%= ws.inspect %> should give you a bunch of details on the instance

2019-01-24

[05:33:41] jtperreault: Ping timeout: 250 seconds
[05:34:06] jtperreault: has joined #RubyOnRails
[05:34:06] jtperreault: has joined #ruby

2019-01-16

[05:05:09] jtperreault: Ping timeout: 252 seconds
[05:05:32] jtperreault: has joined #RubyOnRails
[05:05:32] jtperreault: has joined #ruby

2019-01-15

[20:36:03] jtperreault: Quit: WeeChat 1.4
[20:36:55] jtperreault: has joined #ruby
[20:36:56] jtperreault: has joined #RubyOnRails

2018-09-06

[01:09:46] jtperreault: Ping timeout: 252 seconds
[01:10:10] jtperreault: has joined #RubyOnRails
[01:10:10] jtperreault: has joined #ruby
[01:19:39] jtperreault: Ping timeout: 252 seconds
[01:33:48] jtperreault: has joined #RubyOnRails
[01:33:48] jtperreault: has joined #ruby

2018-08-30

[19:22:40] jtperreault: has joined #RubyOnRails
[19:22:57] jtperreault: has joined #ruby

2018-08-29

[02:42:50] jtperreault: *.net *.split

2018-08-21

[19:48:27] jtperreault: Ping timeout: 256 seconds
[20:02:28] jtperreault: has joined #RubyOnRails
[20:02:28] jtperreault: has joined #ruby

2018-08-18

[13:33:36] jtperreault: has joined #RubyOnRails
[13:33:36] jtperreault: has joined #ruby

2018-08-17

[23:50:49] jtperreault: Ping timeout: 244 seconds

2018-07-20

[00:06:58] jtperreault: *.net *.split
[00:15:25] jtperreault: has joined #RubyOnRails
[00:15:33] jtperreault: has joined #ruby
[07:31:48] jtperreault: Ping timeout: 276 seconds
[07:45:15] jtperreault: has joined #RubyOnRails
[07:45:15] jtperreault: has joined #ruby
[15:21:49] jtperreault: Does rubygems look for a global gemrc file somewhere? Found some info googling but looks like /etc/gemrc is related to RVM specifically.
[15:22:36] jtperreault: I knew that one, but was hoping to have it system wide
[15:28:48] jtperreault: checking the repo now, it looks like it does "... ~/.gemrc file for individual users and a gemrc in the SYSTEM CONFIGURATION DIRECTORY for all users."
[15:32:35] jtperreault: so, /etc/gemrc presumably for linux distros. though it does not appear to be working for me on Ubuntu.
[15:35:27] jtperreault: found it, "/usr/local/etc"
[15:35:50] jtperreault: thanks for letting me talk it out, sorry about the noise :D

2018-07-19

[12:26:44] jtperreault: has joined #RubyOnRails
[12:26:44] jtperreault: has joined #ruby

2018-07-18

[22:59:58] jtperreault: Ping timeout: 256 seconds

2018-06-02

[19:12:14] jtperreault: Ping timeout: 256 seconds
[19:13:37] jtperreault: has joined #RubyOnRails
[19:13:37] jtperreault: has joined #ruby

2018-05-29

[02:47:11] jtperreault: *.net *.split
[02:47:48] jtperreault: has joined #RubyOnRails
[02:48:08] jtperreault: has joined #ruby

2018-05-26

[01:05:06] jtperreault: CuriousMind: you're welcome

2018-05-03

[04:02:19] jtperreault: Quit: WeeChat 1.4
[19:19:40] jtperreault: has joined #RubyOnRails
[19:19:40] jtperreault: has joined #ruby

2018-04-25

[12:25:53] jtperreault: *.net *.split
[12:27:22] jtperreault: has joined #ruby
[12:27:34] jtperreault: has joined #RubyOnRails
[15:01:24] jtperreault: *.net *.split
[15:03:04] jtperreault: has joined #RubyOnRails
[15:03:15] jtperreault: has joined #ruby

2018-04-21

[14:10:54] jtperreault: USvER: this may help: http://api.rubyonrails.org/classes/ActiveRecord/AutosaveAssociation.html
[14:12:24] jtperreault: USvER: you're welcome, I do believe it will.

2018-04-05

[08:28:04] jtperreault: Ping timeout: 256 seconds
[08:54:46] jtperreault: has joined #RubyOnRails
[08:54:46] jtperreault: has joined #ruby

2018-03-08

[21:59:29] jtperreault: 404 response code

2018-02-25

[09:34:50] jtperreault: *.net *.split
[09:36:31] jtperreault: has joined #ruby
[09:36:32] jtperreault: has joined #RubyOnRails

2018-01-18

[01:55:16] jtperreault: *.net *.split
[01:55:46] jtperreault: has joined #ruby
[01:55:47] jtperreault: has joined #RubyOnRails
[07:30:32] jtperreault: Quit: WeeChat 1.4
[14:22:18] jtperreault: has joined #RubyOnRails
[14:22:18] jtperreault: has joined #ruby

2017-12-21

[06:26:11] jtperreault: *.net *.split
[06:31:47] jtperreault: has joined #RubyOnRails
[06:31:48] jtperreault: has joined #ruby
[06:48:30] jtperreault: *.net *.split
[07:24:48] jtperreault: has joined #RubyOnRails
[07:24:48] jtperreault: has joined #ruby

2017-12-19

[17:35:04] jtperreault: swati_27: pass the flag for the DB you want when using the rails new command. rails new myapp -d mysql

2017-12-09

[05:06:11] jtperreault: *.net *.split
[05:39:52] jtperreault: has joined #ruby

2017-12-08

[07:08:59] jtperreault: Ping timeout: 246 seconds
[07:10:44] jtperreault: has joined #ruby

2017-12-07

[14:48:32] jtperreault: *.net *.split
[14:55:11] jtperreault: has joined #ruby

2017-11-29

[16:54:43] jtperreault: nice rundown dminuoso

2017-11-17

[17:29:06] jtperreault: cagomez: attribute_changed? is prob what you're after
[17:30:25] jtperreault: cagomez: ahh, no it would not then

2017-11-16

[20:32:19] jtperreault: memo1: I'm pretty sure you can find that in heroku under the app's settings, open the config vars
[20:54:18] jtperreault: memo1: Not sure if you can from a rails console, check this for help perhaps? https://devcenter.heroku.com/articles/config-vars#setting-up-config-vars-for-a-deployed-application

2017-10-17

[13:54:03] jtperreault: What's the standard place for setting my sidekiq log level for production? I assume I should add Sidekiq::Logging.logger.level = Logger::WARN to the bottom of my environments/production.rb file as opposed to opening a conditional env check in the sidekiq initializer... thoughts?
[14:03:31] jtperreault: dminuoso: thanks

2017-10-05

[14:00:46] jtperreault: Quit: WeeChat 1.4
[14:01:20] jtperreault: has joined #RubyOnRails
[14:01:20] jtperreault: has joined #ruby

2017-10-03

[15:12:02] jtperreault: zeitchef: dont you need to compare it in your unless statement?
[15:13:30] jtperreault: zeitchef: https://gist.github.com/jtperreault/e2f6d2747c1f0a17ccf7dfc5565b3dca

2017-08-15

[01:29:15] jtperreault: Quit: WeeChat 1.4
[01:29:43] jtperreault: has joined #RubyOnRails
[01:29:43] jtperreault: has joined #ruby
[19:03:14] jtperreault: *.net *.split
[19:03:55] jtperreault: has joined #RubyOnRails
[19:03:55] jtperreault: has joined #ruby

2017-08-14

[23:51:30] jtperreault: *.net *.split
[23:52:30] jtperreault: has joined #ruby

2017-08-11

[12:19:08] jtperreault: *.net *.split
[12:19:49] jtperreault: has joined #RubyOnRails
[12:19:49] jtperreault: has joined #ruby

2017-08-10

[14:21:05] jtperreault: ^ mistype, sorry.

2017-08-06

[19:07:54] jtperreault: *.net *.split
[19:18:50] jtperreault: has joined #ruby
[19:18:51] jtperreault: has joined #RubyOnRails

2017-07-30

[15:27:17] jtperreault: has joined #RubyOnRails
[15:27:17] jtperreault: has joined #ruby

2017-06-23

[14:09:56] jtperreault: has joined #RubyOnRails
[14:09:56] jtperreault: has joined #ruby

2017-06-22

[18:53:48] jtperreault: Ping timeout: 240 seconds

2017-06-20

[00:17:39] jtperreault: *.net *.split
[00:22:41] jtperreault: has joined #RubyOnRails

2017-05-25

[02:40:18] jtperreault: Ping timeout: 258 seconds
[12:48:34] jtperreault: has joined #RubyOnRails
[12:48:34] jtperreault: has joined #ruby

2017-05-01

[16:41:13] jtperreault: *.net *.split
[16:42:57] jtperreault: has joined #RubyOnRails
[16:42:57] jtperreault: has joined #ruby

2017-04-13

[12:34:09] jtperreault: has joined #RubyOnRails
[12:34:09] jtperreault: has joined #ruby

2017-04-12

[21:26:36] jtperreault: Ping timeout: 260 seconds

2017-03-22

[22:00:59] jtperreault: Ping timeout: 264 seconds
[22:14:55] jtperreault: has joined #RubyOnRails
[22:14:55] jtperreault: has joined #ruby

2016-07-29

[18:48:18] jtperreault: has joined #RubyOnRails

2016-06-30

[09:08:18] jtperreault: *.net *.split

2016-06-24

[15:27:43] jtperreault: terrabl: I believe JSON.parse() uses string keys (not symbols) by default. So, based on your example, you should be able to access the data using hash["key"] rather than hash[:key]

2016-06-15

[23:12:57] jtperreault: *.net *.split
[23:19:58] jtperreault: has joined #ruby

2016-04-17

[08:12:11] jtperreault: *.net *.split
[10:09:42] jtperreault: has joined #ruby
[16:31:59] jtperreault: *.net *.split

2016-03-18

[04:54:54] jtperreault: Ping timeout: 246 seconds
[06:51:21] jtperreault: has joined #ruby

2016-03-03

[03:26:41] jtperreault: Ping timeout: 260 seconds
[05:26:11] jtperreault: has joined #ruby

2016-02-27

[22:40:57] jtperreault: Ping timeout: 240 seconds
[22:54:02] jtperreault: has joined #ruby

2016-02-22

[20:21:03] jtperreault: *.net *.split

2016-01-31

[12:25:11] jtperreault: *.net *.split
[12:29:46] jtperreault: has joined #RubyOnRails
[12:29:47] jtperreault: has joined #ruby
[12:35:49] jtperreault: Ping timeout: 272 seconds
[14:26:16] jtperreault: has joined #RubyOnRails
[14:26:16] jtperreault: has joined #ruby
[21:12:38] jtperreault: Ping timeout: 240 seconds

2016-01-20

[13:56:04] jtperreault: *.net *.split

2016-01-05

[16:49:52] jtperreault: ubiks: what does the link_to code look like?
[17:14:11] jtperreault: ubiks: what about that link in the routes file, what does that look like?
[17:16:46] jtperreault: ubiks: ok, sounds good.
[17:21:11] jtperreault: ubiks: ok, so looks like that route is not expecting the third param you are trying to pass in.
[17:21:45] jtperreault: ubiks: it's not set up to in the routes file
[17:22:18] jtperreault: ubiks: correct
[17:24:43] jtperreault: ubiks: you're using the rails helper "unlock_user_path()" to construct the URL, and that path right now is only setup to take those 2 params
[17:25:22] jtperreault: ubiks: so, no, it does not pass it in like ?a=1. it creates the URL like you have in your routes file, users/:id/unlock/:aimed_id
[17:28:29] jtperreault: ubiks: you can add the query string though, if needed
[17:30:31] jtperreault: ubiks: ok, sounds good. full link_to docs are here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to
[17:31:00] jtperreault: ubiks: there is a bit on passing query params like ?a=1 in
[17:31:13] jtperreault: ubiks: sure, you're welcome

2015-12-13

[19:35:54] jtperreault: *.net *.split
[19:35:56] jtperreault: has joined #RubyOnRails
[19:35:59] jtperreault: has joined #ruby

2015-12-10

[19:04:23] jtperreault: has joined #ruby
[19:04:29] jtperreault: has joined #RubyOnRails

2015-11-14

[05:14:25] jtperreault: *.net *.split

2015-10-26

[23:40:50] jtperreault: Ping timeout: 268 seconds
[23:41:21] jtperreault: has joined #ruby
[23:41:21] jtperreault: has joined #RubyOnRails

2015-10-22

[06:35:17] jtperreault: Ping timeout: 244 seconds
[06:36:00] jtperreault: has joined #ruby
[06:36:00] jtperreault: has joined #RubyOnRails

2015-10-16

[00:08:51] jtperreault: has joined #RubyOnRails
[00:09:03] jtperreault: has joined #ruby

2015-10-15

[23:34:49] jtperreault: Ping timeout: 265 seconds

2015-10-14

[16:50:15] jtperreault: *.net *.split
[16:59:55] jtperreault: has joined #ruby
[17:00:01] jtperreault: has joined #RubyOnRails
[17:07:18] jtperreault: *.net *.split
[17:10:26] jtperreault: has joined #ruby
[17:10:32] jtperreault: has joined #RubyOnRails

2015-10-13

[00:05:41] jtperreault: has joined #RubyOnRails
[00:05:41] jtperreault: has joined #ruby
[00:06:11] jtperreault: has left #ruby: ()
[00:06:21] jtperreault: has joined #ruby

2015-10-12

[14:09:18] jtperreault: Quit: WeeChat 0.4.1
[22:58:50] jtperreault: has joined #RubyOnRails
[22:58:50] jtperreault: has joined #ruby
[22:59:17] jtperreault: has left #ruby: ()
[22:59:28] jtperreault: has joined #ruby
[23:12:29] jtperreault: Quit: WeeChat 0.4.1

2015-10-08

[01:43:22] jtperreault: has joined #RubyOnRails
[01:43:22] jtperreault: has joined #ruby
[01:44:20] jtperreault: has left #ruby: ()
[01:44:26] jtperreault: has joined #ruby

2015-10-07

[14:27:42] jtperreault: Ping timeout: 256 seconds

2015-09-09

[19:19:34] jtperreault: hatefreelancing: if you have not peers to review your code, you might try posting things here for a bit of feedback: http://codereview.stackexchange.com/
[19:21:44] jtperreault: hatefreelancing: frustrating to feel that way, but feel good that you're expanding knowledge quickly and by force. usually happens much slower

2015-09-02

[18:18:02] jtperreault: Scriptonaut: validates_format_of :email,:with => Devise.email_regexp

2015-09-01

[12:48:41] jtperreault: arup_r: you're right, shows it in the log output. my fault.