skullcrasher

Activity Graph

Page 1 of 1

2016-03-06

[18:15:00] skullcrasher: has left #ruby: ("Leaving")

2016-02-27

[22:32:06] skullcrasher: *.net *.split
[22:53:11] skullcrasher: has joined #ruby

2016-02-22

[20:20:37] skullcrasher: *.net *.split

2016-02-10

[03:36:22] skullcrasher: has joined #ruby

2016-02-08

[08:35:55] skullcrasher: Ping timeout: 245 seconds
[08:52:58] skullcrasher: has joined #ruby
[08:57:46] skullcrasher: Ping timeout: 250 seconds
[11:23:22] skullcrasher: has joined #ruby

2016-01-30

[01:04:03] skullcrasher: *.net *.split
[01:04:25] skullcrasher: has joined #ruby

2016-01-20

[13:56:03] skullcrasher: *.net *.split

2016-01-14

[10:03:49] skullcrasher: has joined #ruby
[10:12:35] skullcrasher: would you recommend using rvm?
[10:28:13] skullcrasher: shevy, actually 1 :D but I think I have problems because of a newer version and json 1.8.1 in my gemfile
[10:28:43] skullcrasher: so I thought I would install older ruby version for this probject, but for the others the latest
[14:03:15] skullcrasher: shevy, ruby-install + chruby worked nicely, thx :)
[14:03:29] skullcrasher: only problem now is integration into rubymine ... nvm
[14:29:40] skullcrasher: hmm works well but no ide integration :/ don't know how to start debugging now -.-

2016-01-12

[21:46:31] skullcrasher: is there an alternative gem for sprockets and its asset pipline?

2015-12-25

[12:58:05] skullcrasher: Ping timeout: 276 seconds
[12:59:39] skullcrasher: has joined #RubyOnRails

2015-12-16

[08:59:57] skullcrasher: what is the rails solution for js/css asset management? how can I use bower and the like?
[09:00:57] skullcrasher: copying 3rd party sources in the asset folder doesn't look that "clean" to me

2015-12-15

[14:56:48] skullcrasher: for frontend asset management, what would you recommend? bower-rails gem or the "rails-assets way"?

2015-12-14

[16:37:04] skullcrasher: does activeResource not recognize (and deserialize) json-objects with only one property?
[16:37:55] skullcrasher: something like: {"value":13} seems not to be valid
[16:39:48] skullcrasher: tubbo, for findAll and findOne with multiple attributes it seems to work

2015-12-08

[13:30:27] skullcrasher: can I somehow inherit the controller of my engine from another main_app controller than ::ApplicationController?
[13:31:01] skullcrasher: something like EngineController < ::OtherMainController

2015-12-07

[10:17:38] skullcrasher: I have an activeResource with self.site and another model that inherits from this resource.
[10:17:55] skullcrasher: is the attribute self.site not inherited for other models?
[14:33:03] skullcrasher: can someone point to instructions, that tell how to get nested "apps/submodules" to work?

2015-12-02

[15:38:58] skullcrasher: *.net *.split
[15:41:42] skullcrasher: has joined #RubyOnRails
[15:51:43] skullcrasher: *.net *.split
[16:48:02] skullcrasher: has joined #RubyOnRails

2015-12-01

[14:13:29] skullcrasher: has joined #RubyOnRails
[14:14:13] skullcrasher: what do I have to do in order to add subfolders + models to the app/models folder?
[14:14:20] skullcrasher: for better organization
[14:14:44] skullcrasher: I get an 'uninstantiated constant' error
[14:16:57] skullcrasher: defsdoor, hmm ok. I added a folder like app/models/test/test_model.rb
[14:17:28] skullcrasher: sevenseacat, any links on how to namespace models?
[14:17:56] skullcrasher: sevenseacat, well there are already many models, and logical some of them belong to different sections than the others

2015-11-25

[12:04:48] skullcrasher: how can I execute functions after an ActiveResource has been instantiated?
[12:05:20] skullcrasher: my resource has a type, and I want to automatically popuplate an attribute "src" based on the type
[12:07:13] skullcrasher: badoo, is there no other way so that the model itself can have the function?
[12:09:49] skullcrasher: badoo, that's what I try to find. I think you talk about callbacks?
[12:12:35] skullcrasher: badoo, ok, nice. That after_update is what I was looking for.
[12:12:41] skullcrasher: thx, I'll figure out the rest
[12:15:33] skullcrasher: badoo, damn :/ looks like ActiveResource has no callbacks?
[12:17:58] skullcrasher: already did, but breakpoint is not reached
[12:18:34] skullcrasher: I use ActiveResource, not ActiveRecord
[12:18:39] skullcrasher: seems to make a difference
[12:20:49] skullcrasher: well, I can't find any callbacks in the documentation
[12:23:14] skullcrasher: well I have to :D
[12:23:19] skullcrasher: the data comes from a REST api
[12:25:15] skullcrasher: rvanlieshout, hmm quite some.
[12:26:13] skullcrasher: but nothing I could use. I think I would need something like 'after_load'
[12:27:45] skullcrasher: something like that, yes
[12:27:47] skullcrasher: but: undefined method `after_initialize'
[12:34:07] skullcrasher: rvanlieshout, well ok. I think I will implement this. thx
[14:17:31] skullcrasher: how can I get an assetUrl in my model?
[14:18:54] skullcrasher: tbuehlmann, well I want to set a imageUrl as attribute of the model right after initialization
[14:19:03] skullcrasher: it depends on the models type
[14:19:42] skullcrasher: so I thought the model should be able to do this by itself
[14:22:22] skullcrasher: I get data by a REST api. The ActiveResource will be forwarded to some js functions (drawing on map etc)
[14:22:56] skullcrasher: and the js needs the image source, for putting it as a marker image on the map
[14:23:48] skullcrasher: and the image depends on the "type" attribute of the ActiveResource
[14:24:53] skullcrasher: I thought building the image url should be easier in rails than in js
[14:26:08] skullcrasher: tbuehlmann, if you have better ideas, no problem :)
[14:26:45] skullcrasher: tbuehlmann, I just thought the model should be independent from any controller to get its imageUrl
[14:28:48] skullcrasher: tbuehlmann, yes, the image is located in the assets folder. what does a decorator do?
[14:31:03] skullcrasher: tbuehlmann, so you talk about some helper functionality, that my model can use to get the image path?
[14:31:26] skullcrasher: I found something about AssetUrlHelper, but this seems only to be possible in a controller
[14:34:56] skullcrasher: tbuehlmann, so should I loop over all fetched models in the controller, add the src and then output it?
[14:37:01] skullcrasher: tbuehlmann, these looks a nice approach

2015-11-23

[20:12:58] skullcrasher: Ping timeout: 260 seconds
[21:46:59] skullcrasher: has joined #ruby
[21:46:59] skullcrasher: has joined #RubyOnRails

2015-11-22

[03:52:28] skullcrasher: Ping timeout: 250 seconds
[04:00:07] skullcrasher: has joined #ruby
[04:00:07] skullcrasher: has joined #RubyOnRails

2015-11-19

[02:23:46] skullcrasher: Ping timeout: 250 seconds
[02:28:43] skullcrasher: has joined #ruby
[02:28:43] skullcrasher: has joined #RubyOnRails

2015-11-15

[06:20:11] skullcrasher: Ping timeout: 240 seconds
[06:20:58] skullcrasher: has joined #ruby
[06:20:58] skullcrasher: has joined #RubyOnRails

2015-11-11

[19:34:10] skullcrasher: has joined #ruby
[19:34:10] skullcrasher: has joined #RubyOnRails

2015-11-05

[12:15:07] skullcrasher: is there a simple method that "clears" a hash from keys with nil value?
[12:16:57] skullcrasher: nvm, found it: Hash.compact
[12:18:09] skullcrasher: oded, np thx anyway ;)

2015-11-04

[08:21:05] skullcrasher: how can I model this kind of json http://pastie.org/10528261
[08:21:33] skullcrasher: so that ruby can consume the json and build one/more models out of it
[08:22:45] skullcrasher: krzkrz, well yes. What I would like to know about is more like this: The sourrounding json object should be 1 model, and the data array should contain other models
[15:33:08] skullcrasher: what could be the reason I get a "can't modify frozen String" in this line
[15:33:09] skullcrasher: @data = VehicleLatestDataRail.auth(@auth).find(:all, :params => {:sSearch => '', :displayStart => 12})
[15:33:36] skullcrasher: the response is a valid json object
[15:34:31] skullcrasher: does rails do this automatically on creating a model from activeResource?
[18:06:03] skullcrasher: I want to use an ActiveResource with find(:one), can I omit the :from => ... ?
[18:06:11] skullcrasher: like in: Person.find(:first, :from => :managers)

2015-11-03

[16:08:14] skullcrasher: hey there, I have a rest api that send me an object that has a attribute, which itself is an array of json objects
[16:09:12] skullcrasher: so how do you do it in ruby, that I can have a model for the whole request, that maps the array of json objects, to objects of another model class?
[16:10:12] skullcrasher: I thought more it could work somehow like relations for AR but not backed by database and keys
[16:12:09] skullcrasher: just thought it's a normal ruby thing
[16:17:40] skullcrasher: hey there, I have a rest api that send me an object that has a attribute, which itself is an array of json objects
[16:17:47] skullcrasher: so how do you do it in ruby, that I can have a model for the whole request, that maps the array of json objects, to objects of another model class?
[16:18:10] skullcrasher: I thought it's similar to relations, but not backed by a databse
[17:21:43] skullcrasher: Ping timeout: 268 seconds
[17:39:03] skullcrasher: has joined #ruby
[17:39:03] skullcrasher: has joined #RubyOnRails
[17:49:34] skullcrasher: Ping timeout: 272 seconds
[18:09:57] skullcrasher: has joined #RubyOnRails
[18:09:58] skullcrasher: has joined #ruby

2015-10-30

[15:16:46] skullcrasher: Ping timeout: 272 seconds
[15:18:42] skullcrasher: has joined #RubyOnRails
[15:18:43] skullcrasher: has joined #ruby

2015-10-26

[20:45:50] skullcrasher: Ping timeout: 240 seconds
[20:48:32] skullcrasher: has joined #ruby
[20:48:32] skullcrasher: has joined #RubyOnRails

2015-10-16

[00:10:11] skullcrasher: has joined #ruby
[00:10:16] skullcrasher: has joined #RubyOnRails

2015-10-10

[05:32:16] skullcrasher: Ping timeout: 244 seconds
[05:35:05] skullcrasher: has joined #ruby
[05:35:05] skullcrasher: has joined #RubyOnRails

2015-10-07

[21:50:17] skullcrasher: has joined #ruby
[21:50:17] skullcrasher: has joined #RubyOnRails

2015-10-06

[20:43:45] skullcrasher: *.net *.split
[20:46:17] skullcrasher: has joined #RubyOnRails
[20:46:20] skullcrasher: has joined #ruby

2015-09-30

[20:50:17] skullcrasher: has joined #ruby
[20:50:17] skullcrasher: has joined #RubyOnRails

2015-09-29

[19:25:55] skullcrasher: has joined #ruby
[19:25:55] skullcrasher: has joined #RubyOnRails

2015-09-24

[06:47:19] skullcrasher: has joined #RubyOnRails
[06:47:19] skullcrasher: has joined #ruby
[07:45:32] skullcrasher: Quit: Leaving
[07:46:54] skullcrasher: has joined #RubyOnRails
[07:46:54] skullcrasher: has joined #ruby
[07:46:58] skullcrasher: Remote host closed the connection
[07:47:41] skullcrasher: has joined #RubyOnRails
[07:47:41] skullcrasher: has joined #ruby
[07:56:15] skullcrasher: has joined #ruby
[07:56:19] skullcrasher: has joined #RubyOnRails

2015-09-23

[06:54:10] skullcrasher: has joined #RubyOnRails
[06:54:10] skullcrasher: has joined #ruby
[15:59:09] skullcrasher: Remote host closed the connection

2015-09-22

[07:02:12] skullcrasher: has joined #RubyOnRails
[07:02:12] skullcrasher: has joined #ruby
[16:54:32] skullcrasher: Remote host closed the connection

2015-09-21

[06:47:45] skullcrasher: has joined #RubyOnRails
[06:47:45] skullcrasher: has joined #ruby
[12:01:21] skullcrasher: Ping timeout: 246 seconds
[20:31:54] skullcrasher: has joined #RubyOnRails
[20:31:54] skullcrasher: has joined #ruby
[20:55:12] skullcrasher: Remote host closed the connection

2015-09-18

[06:46:46] skullcrasher: has joined #RubyOnRails
[06:46:46] skullcrasher: has joined #ruby
[16:51:02] skullcrasher: Remote host closed the connection

2015-09-17

[06:43:20] skullcrasher: has joined #RubyOnRails
[06:43:20] skullcrasher: has joined #ruby
[11:41:34] skullcrasher: Read error: Connection reset by peer

2015-09-16

[06:48:23] skullcrasher: has joined #RubyOnRails
[06:48:23] skullcrasher: has joined #ruby
[14:52:50] skullcrasher: Remote host closed the connection
[16:02:53] skullcrasher: has joined #RubyOnRails
[16:02:53] skullcrasher: has joined #ruby
[19:01:40] skullcrasher: Remote host closed the connection

2015-09-15

[06:48:59] skullcrasher: has joined #RubyOnRails
[06:48:59] skullcrasher: has joined #ruby
[07:27:13] skullcrasher: Remote host closed the connection
[07:27:48] skullcrasher: has joined #RubyOnRails
[07:27:48] skullcrasher: has joined #ruby
[17:31:04] skullcrasher: Remote host closed the connection

2015-09-14

[06:51:15] skullcrasher: has joined #ruby
[06:51:16] skullcrasher: has joined #RubyOnRails
[08:53:18] skullcrasher: Quit: Leaving

2015-09-11

[06:56:20] skullcrasher: has joined #RubyOnRails
[06:56:20] skullcrasher: has joined #ruby
[15:06:14] skullcrasher: Remote host closed the connection
[16:33:50] skullcrasher: has joined #ruby
[16:34:10] skullcrasher: has joined #RubyOnRails
[19:47:54] skullcrasher: Quit: Leaving

2015-09-10

[11:29:56] skullcrasher: has joined #RubyOnRails
[11:29:56] skullcrasher: has joined #ruby
[15:35:35] skullcrasher: Remote host closed the connection

2015-09-08

[09:08:29] skullcrasher: has joined #ruby
[09:14:33] skullcrasher: has joined #RubyOnRails
[16:20:39] skullcrasher: Remote host closed the connection

2015-09-07

[06:46:52] skullcrasher: has joined #ruby
[07:37:17] skullcrasher: Remote host closed the connection
[07:44:52] skullcrasher: has joined #ruby
[14:35:20] skullcrasher: has joined #ruby
[16:18:05] skullcrasher: Remote host closed the connection

2015-09-04

[07:40:57] skullcrasher: has joined #ruby
[08:44:37] skullcrasher: Remote host closed the connection
[09:08:41] skullcrasher: has joined #ruby
[09:24:00] skullcrasher: Ping timeout: 250 seconds
[09:29:19] skullcrasher: has joined #ruby
[15:38:25] skullcrasher: Remote host closed the connection

2015-03-01

[18:37:04] skullcrasher: i try to install a gem (json 1.7.7) and everytime I get the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. Any ideas?
[18:38:15] skullcrasher: IceDragon, http://paste.good-times.eu/index.php/2B4/rb
[18:38:20] skullcrasher: on linux (archlinux)
[18:41:41] skullcrasher: IceDragon, well only the explicit installation of v 1.7.7 fails, the latest 1.8.2 works