erts

Activity Graph

Page 1 of 1

2019-07-17

[10:08:59] erts: has joined #RubyOnRails
[10:08:59] erts: has joined #ruby

2019-06-30

[15:27:23] erts: has joined #RubyOnRails
[15:27:23] erts: has joined #ruby

2018-07-16

[15:07:27] erts: has joined #RubyOnRails
[15:07:27] erts: has joined #ruby

2018-03-19

[18:52:55] erts: has joined #RubyOnRails
[18:52:55] erts: has joined #ruby

2018-01-08

[00:01:37] erts: Quit: Mutter: www.mutterirc.com

2018-01-07

[23:38:54] erts: has joined #RubyOnRails
[23:39:18] erts: has joined #ruby

2017-10-21

[11:23:47] erts: has joined #RubyOnRails
[11:23:47] erts: has joined #ruby
[11:24:28] erts: Hi everybody! Beginner question here: I see that, generated by the scaffolding, when a form doesn't pass the validation on submit, it renders the new view through the create controller method. This is fine, it gives me access to the form errors and all the rest, but the URL doesn't change, so if the user refreshes the page they'll get an error or some other result on the browser. I know this is intended, because the user is supposed to just fill the
[11:24:29] erts: form again (correctly) and hit submit, but is there any workaround to protect ourselves from this behaviour? Thanks!
[11:29:03] erts: matthewd: I was referring that rails gives you an error if you don't have an index method, in my case, if I refresh it takes me to the index when I was meaning to refresh the "new" form
[11:29:34] erts: having an index method there is no error, it's just annoying, if you don't have an index method you would get an error saying that you can't request to that URL using GET
[11:30:26] erts: could you give me a good example to reconstruct the validation failure errors? I've been trying a few things but it's quite messy. For some reason I feel like this is very hacky and there should be another way to solve it
[11:31:35] erts: I guess I'd be happy enough rendering the new view from the create method as usual, but updating the URL in the browser, so the refresh scenario doesn't happen
[11:31:53] erts: but it still doesn't make sense to me.... I must be doing something wrong
[11:38:20] erts: ok let me clarify
[11:40:05] erts: I must be doing something wrong then, hold on a second
[11:40:42] erts: yeah in my case in this scenario, the browser doesn't resubmit and it takes me to the index action
[12:02:01] erts: Ping timeout: 240 seconds
[12:15:18] erts: has joined #ruby
[12:15:18] erts: has joined #RubyOnRails
[13:22:01] erts: Ping timeout: 240 seconds
[14:34:17] erts: has joined #ruby
[14:34:19] erts: has joined #ruby
[14:34:19] erts: Changing host
[15:02:35] erts: Ping timeout: 240 seconds
[18:26:39] erts: has joined #ruby
[18:27:33] erts: Client Quit

2016-03-08

[17:42:41] erts: has joined #ruby
[17:42:41] erts: has joined #RubyOnRails
[17:44:36] erts: Client Quit
[17:45:08] erts: has joined #RubyOnRails
[17:45:09] erts: has joined #ruby
[17:45:43] erts: Client Quit

2016-02-27

[13:50:48] erts: has joined #ruby
[13:50:48] erts: has joined #RubyOnRails
[18:41:21] erts: Remote host closed the connection

2016-02-21

[16:00:30] erts: has joined #ruby
[16:00:30] erts: has joined #RubyOnRails
[16:13:59] erts: Ping timeout: 240 seconds

2015-11-09

[13:53:11] erts: has joined #RubyOnRails
[16:37:34] erts: Remote host closed the connection

2015-09-09

[04:24:03] erts: has joined #ruby
[04:24:03] erts: has joined #RubyOnRails
[04:27:33] erts: Quit: erts

2015-09-02

[02:51:42] erts: Quit: erts

2015-09-01

[22:14:36] erts: has joined #RubyOnRails
[22:14:37] erts: has joined #ruby

2015-08-26

[18:41:56] erts: has joined #RubyOnRails
[18:41:57] erts: has joined #ruby
[19:03:34] erts: Quit: erts

2015-08-21

[15:27:43] erts: has joined #ruby
[15:27:43] erts: has joined #RubyOnRails
[22:48:54] erts: Quit: erts

2015-08-19

[15:13:21] erts: has joined #RubyOnRails
[15:13:22] erts: has joined #ruby
[15:16:28] erts: Client Quit
[15:42:59] erts: has joined #ruby
[15:42:59] erts: has joined #RubyOnRails
[17:51:29] erts: Quit: erts

2015-08-17

[01:23:04] erts: has joined #ruby
[01:23:04] erts: has joined #RubyOnRails
[01:53:04] erts: Ping timeout: 250 seconds
[01:57:10] erts: has joined #RubyOnRails
[01:57:10] erts: has joined #ruby
[04:46:53] erts: Quit: erts

2015-08-15

[11:19:42] erts: has joined #RubyOnRails
[11:19:43] erts: has joined #ruby
[11:22:53] erts: Client Quit
[11:23:22] erts: has joined #ruby
[11:23:22] erts: has joined #RubyOnRails
[20:41:14] erts: Quit: erts

2015-08-06

[21:42:04] erts: has joined #ruby
[21:42:04] erts: has joined #RubyOnRails
[23:47:33] erts: Ping timeout: 260 seconds

2015-08-05

[20:30:41] erts: has joined #ruby
[20:30:41] erts: has joined #RubyOnRails
[20:31:43] erts: Client Quit

2015-07-31

[11:49:19] erts: has joined #RubyOnRails
[11:49:20] erts: has joined #ruby
[11:50:31] erts: Client Quit
[11:51:22] erts: has joined #ruby
[11:51:22] erts: has joined #RubyOnRails
[12:28:21] erts: Quit: erts

2015-07-29

[19:15:49] erts: has joined #RubyOnRails
[19:15:50] erts: has joined #ruby
[19:29:31] erts: Ping timeout: 240 seconds
[19:33:55] erts: has joined #ruby
[19:33:55] erts: has joined #RubyOnRails
[20:29:59] erts: Ping timeout: 252 seconds

2015-07-19

[15:39:54] erts: has joined #RubyOnRails
[20:01:43] erts: Quit: erts

2015-07-17

[17:23:38] erts: has joined #RubyOnRails
[17:23:47] erts: has left #RubyOnRails: ()
[17:23:55] erts: has joined #RubyOnRails
[17:49:06] erts: Quit: erts

2015-07-03

[13:51:43] erts: has joined #ruby
[13:51:43] erts: has joined #RubyOnRails
[18:55:39] erts: Quit: erts

2015-06-30

[18:51:25] erts: has joined #ruby
[18:51:25] erts: has joined #RubyOnRails
[21:30:58] erts: Quit: erts

2015-06-29

[14:53:33] erts: has joined #RubyOnRails
[14:53:34] erts: has joined #ruby
[15:42:52] erts: Ping timeout: 255 seconds

2015-06-27

[16:39:54] erts: has joined #ruby
[16:39:54] erts: has joined #RubyOnRails
[18:27:08] erts: Quit: erts

2015-06-24

[02:46:04] erts: has joined #ruby
[02:46:04] erts: has joined #RubyOnRails
[06:47:23] erts: Quit: erts

2015-06-20

[16:40:54] erts: has joined #ruby
[16:40:54] erts: has joined #RubyOnRails
[22:12:33] erts: Ping timeout: 250 seconds

2015-06-18

[11:22:42] erts: has joined #ruby
[11:22:42] erts: has joined #RubyOnRails
[13:25:02] erts: Quit: erts

2015-06-17

[13:23:23] erts: has joined #ruby
[13:23:23] erts: has joined #RubyOnRails
[16:18:54] erts: Ping timeout: 265 seconds
[16:38:59] erts: has joined #RubyOnRails
[16:38:59] erts: has joined #ruby
[17:42:27] erts: Quit: erts
[19:34:13] erts: has joined #ruby
[19:34:13] erts: has joined #RubyOnRails
[23:39:22] erts: Quit: erts

2015-06-16

[15:25:04] erts: has joined #ruby
[15:25:04] erts: has joined #RubyOnRails
[15:30:18] erts: Ping timeout: 256 seconds
[19:00:42] erts: has joined #RubyOnRails
[19:00:43] erts: has joined #ruby
[21:22:22] erts: Quit: erts

2015-06-14

[06:50:24] erts: has joined #RubyOnRails
[06:50:27] erts: has left #RubyOnRails: ()
[06:52:47] erts: has joined #RubyOnRails
[06:52:48] erts: has joined #ruby
[06:56:28] erts: Quit: erts
[06:57:07] erts: has joined #RubyOnRails
[06:57:07] erts: has joined #ruby
[06:57:07] erts: Changing host
[06:57:07] erts: has joined #ruby
[06:57:07] erts: has joined #RubyOnRails
[07:42:00] erts: crodjer: you mean a ternary operator?
[13:20:18] erts: Ping timeout: 240 seconds
[16:57:47] erts: has joined #ruby
[16:57:47] erts: has joined #RubyOnRails
[16:57:47] erts: Changing host
[16:57:47] erts: has joined #RubyOnRails
[16:57:47] erts: has joined #ruby
[17:11:04] erts: Ping timeout: 255 seconds
[17:45:37] erts: has joined #RubyOnRails
[17:45:37] erts: has joined #ruby
[17:45:37] erts: Changing host
[17:45:37] erts: has joined #ruby
[17:45:37] erts: has joined #RubyOnRails
[17:51:04] erts: Quit: erts
[17:51:31] erts: has joined #ruby
[17:51:31] erts: has joined #RubyOnRails
[17:51:39] erts: Remote host closed the connection
[17:52:20] erts: has joined #ruby
[17:52:20] erts: has joined #RubyOnRails
[19:58:09] erts: Ping timeout: 245 seconds
[20:13:19] erts: has joined #ruby
[20:13:19] erts: has joined #RubyOnRails
[20:13:20] erts: Changing host
[20:13:21] erts: has joined #RubyOnRails
[20:13:21] erts: has joined #ruby
[21:33:24] erts: Remote host closed the connection

2015-05-22

[01:40:04] erts: Quit: erts

2015-05-21

[23:58:01] erts: has joined #RubyOnRails

2015-04-10

[22:34:29] erts: Hello!! I'm new to Rails and I'm really excited! I find it very cool so far. Have a question though: I understand you can use rails generate scaffold for genereting almost everything, or you can do it for yourself generating your models and your controllers. Which one is the best way? I mean best practice (I guess the best way to learn is doing everything manually, isn't it?). Thanks! :)
[22:35:33] erts: Dysp: totally agreed
[22:36:23] erts: I could make the whole famous "todo list" in minutes, without writing any code (other than css maybe) and didn't learn anything at all about rails
[22:37:07] erts: but at a more advanced level maybe it's the 'right way' to do it?
[22:38:20] erts: yeah no worries Dysp. It's nice to know that somebody is on the same page as I am...