greenhat|

Activity Graph

Page 1 of 1

2017-03-24

[18:00:13] greenhat|: Ping timeout: 260 seconds

2016-07-25

[21:57:38] greenhat|: I use pundit and most of the time don't use pundit for index actions.
[21:58:21] greenhat|: I generally don't find the scoping part of pundit very useful, but that's just me.
[21:58:53] greenhat|: You can skip that after_action for the index action.

2016-07-06

[15:07:00] greenhat|: tyul: Another option is to create simple bash scripts in the projects bin/ directory.

2016-07-05

[16:14:59] greenhat|: jhass: ensure you have `config.force_ssl = true` in your production config.
[16:23:02] greenhat|: force_ssl also makes sure your session cookies are marked as secure, and enables the strict-transport-security header.
[16:23:37] greenhat|: That's trickier to do at the proxy.
[16:25:05] greenhat|: And, perhaps confusingly, force_ssl doesn't require your rails app server to be running over https. It is happy as long as the x-forwarded-proto header is set to https by your proxy.
[16:41:10] greenhat|: The problem with configuring nginx or whatever to do the things rails does for you is you are coupling your app nginx. If you ever want to move it to some other tls terminator you need to remember to port all that configuration over.
[16:41:43] greenhat|: If you can. The new server might not support all that, and then you need to move it to rails anyway. But if you know you'll be on nginx forever it is fine.

2016-07-04

[18:08:05] greenhat|: Quit: ZNC - http://znc.in
[18:08:39] greenhat|: has joined #RubyOnRails
[18:08:40] greenhat|: has joined #ruby
[18:09:25] greenhat|: Client Quit
[18:09:56] greenhat|: has joined #ruby
[18:09:56] greenhat|: has joined #RubyOnRails
[23:56:52] greenhat|: You need to create the loan object. Does `loan = create(:loan)` work?
[23:59:13] greenhat|: As a caveat, I've never used rspec, so I'm sure they have some kind of complex syntax to assign a loan to a variable, probably in a let block. But that's the basic idea.

2016-07-03

[04:53:01] greenhat|: Quit: ZNC - http://znc.in
[07:16:54] greenhat|: has joined #ruby
[07:16:54] greenhat|: has joined #RubyOnRails

2016-06-27

[06:09:17] greenhat|: Ping timeout: 244 seconds
[06:12:25] greenhat|: has joined #ruby
[06:12:25] greenhat|: has joined #RubyOnRails

2016-06-14

[00:31:15] greenhat|: has joined #ruby
[00:31:15] greenhat|: has joined #RubyOnRails

2016-04-13

[20:45:44] greenhat|: has joined #ruby
[20:45:44] greenhat|: has joined #RubyOnRails

2016-03-08

[16:25:19] greenhat|: Quit: ZNC - http://znc.in

2016-03-04

[04:30:24] greenhat|: has joined #ruby
[04:30:24] greenhat|: has joined #RubyOnRails

2016-02-27

[22:40:57] greenhat|: Ping timeout: 240 seconds

2016-02-17

[09:52:41] greenhat|: *.net *.split

2016-02-06

[18:56:10] greenhat|: Quit: ZNC - http://znc.in
[18:56:42] greenhat|: has joined #ruby
[18:56:42] greenhat|: has joined #RubyOnRails

2016-02-05

[16:11:06] greenhat|: has joined #ruby
[16:11:06] greenhat|: has joined #RubyOnRails
[16:14:32] greenhat|: *.net *.split

2016-02-02

[19:11:04] greenhat|: has joined #ruby
[19:11:04] greenhat|: has joined #RubyOnRails