TheMonster_

Activity Graph

Page 1 of 1

2017-09-04

[18:38:25] TheMonster_: *.net *.split

2017-08-14

[23:51:23] TheMonster_: *.net *.split
[23:56:32] TheMonster_: has joined #RubyOnRails

2017-07-19

[05:24:47] TheMonster_: has joined #RubyOnRails
[05:29:50] TheMonster_: I have a request body as a string... Something like body = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name="test"\r\nteeeeest------WebKitFormBoundary7MA4YWxkTrZu0gW--". I'd like to extract the parameters in this body. How can I do that?
[05:44:14] TheMonster_: Radar: It's not a request
[05:44:20] TheMonster_: It's saved in a file
[05:44:31] TheMonster_: and I want to deal with it as if it was a request
[05:46:43] TheMonster_: I kinda want to construct a request object if that's possible or just extract the parameters if that'd be easier
[06:13:25] TheMonster_: Radar: Thanks for the pointer... I guessed that I should do Rack::MockRequest.env_for and pass my string in place of the file then use Rack::Multipart.parse_multipart(env) but it returns nil
[06:14:05] TheMonster_: taking the request through another language then saving it as a file
[06:35:34] TheMonster_: Thanks a lot Radar :)

2017-05-08

[02:14:53] TheMonster_: has joined #RubyOnRails

2016-07-02

[09:55:21] TheMonster_: has joined #RubyOnRails

2016-02-27

[03:05:34] TheMonster_: has joined #RubyOnRails
[03:07:11] TheMonster_: on simple form, I have a date input date of birth. I want to use a prompt which shows year in the year selector, 'month' in the month selector and so on. Is that possible?
[03:07:51] TheMonster_: <%= f.input :date_of_birth, prompt: "Year/Month/Day" %>
[03:13:25] TheMonster_: :prompt => { :year => 'Year', :month => 'Month', :day => 'Day' }
[20:36:10] TheMonster_: has left #RubyOnRails: ("Konversation terminated!")

2016-02-03

[00:48:47] TheMonster_: has left #RubyOnRails: ("Konversation terminated!")

2016-01-31

[12:25:17] TheMonster_: *.net *.split
[12:29:14] TheMonster_: has joined #RubyOnRails

2016-01-30

[20:44:03] TheMonster_: has joined #RubyOnRails
[21:18:04] TheMonster_: Hi, I'm trying to setup a test app on Heroku rails 5.0.0.beta1.1. I'm having a problem getting ActionCable to work. Console says WebSocket connection to 'wss://sustain-game.herokuapp.com/cable' failed: WebSocket is closed before the connection is established. Does anyone have an idea about this?

2016-01-20

[00:31:45] TheMonster_: Quit: See you later :)

2015-12-12

[17:36:14] TheMonster_: has joined #RubyOnRails
[18:35:48] TheMonster_: Hi, If I have a Post model, a User model and a Comment model, the Comment belongs to a user and a post. I want to be able to see all comments on a post and all comments of a user. Is there some known best practice for that scenario?
[18:36:32] TheMonster_: I assume the routes would use shallow nesting
[18:37:36] TheMonster_: The controller index method would need to check what parameter is in the url and accordingly list?