mauro1254

Activity Graph

Page 1 of 7 | Next »

2019-07-22

[11:50:56] mauro1254: has joined #RubyOnRails
[15:41:40] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-05-24

[13:24:13] mauro1254: has joined #RubyOnRails
[14:09:31] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-03-25

[08:12:28] mauro1254: has joined #RubyOnRails
[13:46:40] mauro1254: Read error: Connection reset by peer

2019-03-15

[09:42:14] mauro1254: has joined #RubyOnRails
[16:17:04] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-03-07

[18:57:44] mauro1254: has joined #RubyOnRails
[20:43:05] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-03-06

[13:06:04] mauro1254: has joined #RubyOnRails
[17:20:48] mauro1254: Ping timeout: 252 seconds

2019-03-05

[16:34:59] mauro1254: has joined #RubyOnRails
[17:00:09] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-02-27

[16:02:36] mauro1254: has joined #RubyOnRails
[16:41:21] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-02-26

[16:04:00] mauro1254: has joined #RubyOnRails
[17:16:25] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-02-14

[16:20:22] mauro1254: has joined #RubyOnRails
[17:16:21] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-02-13

[08:49:53] mauro1254: has joined #RubyOnRails
[22:02:42] mauro1254: Ping timeout: 252 seconds

2019-01-30

[09:05:09] mauro1254: has joined #RubyOnRails
[16:06:21] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-01-24

[10:17:16] mauro1254: has joined #RubyOnRails
[12:27:54] mauro1254: Ping timeout: 250 seconds

2019-01-09

[09:03:54] mauro1254: has joined #RubyOnRails
[16:13:54] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2019-01-08

[08:10:20] mauro1254: has joined #RubyOnRails
[16:44:52] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-12-14

[17:39:10] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-12-13

[16:20:24] mauro1254: has joined #RubyOnRails

2018-12-12

[07:24:38] mauro1254: has joined #RubyOnRails
[16:15:22] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-12-06

[13:06:29] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-12-05

[14:00:41] mauro1254: has joined #RubyOnRails

2018-12-04

[10:25:14] mauro1254: has joined #RubyOnRails
[16:34:17] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-11-29

[17:09:40] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-11-28

[14:43:22] mauro1254: has joined #RubyOnRails

2018-11-16

[09:05:04] mauro1254: has joined #RubyOnRails
[16:59:04] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-11-05

[15:42:46] mauro1254: has joined #RubyOnRails
[16:23:07] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-10-30

[09:55:00] mauro1254: has joined #RubyOnRails
[16:43:05] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-10-19

[06:19:04] mauro1254: has joined #RubyOnRails
[14:11:54] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-10-18

[15:26:22] mauro1254: has joined #RubyOnRails
[16:20:58] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-10-09

[15:38:08] mauro1254: has joined #RubyOnRails
[16:06:46] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-09-11

[08:06:19] mauro1254: has joined #RubyOnRails
[14:22:24] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-09-10

[12:10:36] mauro1254: has joined #RubyOnRails
[15:23:03] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-08-31

[14:14:30] mauro1254: has joined #RubyOnRails
[15:35:29] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-08-29

[09:50:23] mauro1254: has joined #RubyOnRails
[15:04:13] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-08-22

[14:46:29] mauro1254: has joined #RubyOnRails
[15:28:45] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-08-17

[09:29:47] mauro1254: has joined #RubyOnRails
[15:39:23] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-26

[15:41:07] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-25

[06:57:01] mauro1254: has joined #RubyOnRails
[08:12:55] mauro1254: Hi folks. Is there an ORM for RESTful webservice that integrates (associations) with ActiveRecord?
[11:40:21] mauro1254: Hi folks. Is there an ORM for RESTful webservice that integrates (supports associations) with ActiveRecord?
[11:51:02] mauro1254: Radar: you are right, I asked the question multiple times. Yes, I control both applications.
[11:52:54] mauro1254: Radar : there are many apps that need to access shared data. One solution is to build an engine and share AR models (share same DB)
[11:53:26] mauro1254: Radar : the other solution is to use ARes (or equivalent) models
[11:54:20] mauro1254: Radar : I prefer the second solution, but it seems that certain things are not supported (associations between local / remote odels)
[11:56:10] mauro1254: Radar : problems happens when you have a collection of objects and you want to prevent N+1 query problem, or when you have N to N relationships
[11:58:10] mauro1254: Radar : I have the problem if I use AR for local models, ARes for remote ones
[12:02:21] mauro1254: Radar : sharing the DB is probably the easiest solution
[12:03:14] mauro1254: An engin to share models, migration are installed only in the master application.
[12:04:35] mauro1254: Radar : thx for your help
[12:06:07] mauro1254: Radar : hehe

2018-06-22

[08:37:01] mauro1254: has joined #RubyOnRails
[12:29:15] mauro1254: nemesit : which kind of validation?
[12:40:16] mauro1254: nemesit : custom validator
[15:05:23] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-21

[06:23:22] mauro1254: has joined #RubyOnRails
[08:17:49] mauro1254: Anyone using ActiveResource / Her ?
[12:03:16] mauro1254: Hi folks, are there alternatives to ActiveResource / Her supporting associations with activeRecord models?
[15:34:54] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-20

[06:46:20] mauro1254: has joined #RubyOnRails
[06:50:26] mauro1254: Read error: Connection reset by peer
[14:56:17] mauro1254: has joined #RubyOnRails
[15:48:32] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-15

[14:15:46] mauro1254: has joined #RubyOnRails
[15:24:35] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-06-14

[08:22:17] mauro1254: Hi folks! Is there a gem that let you consume a json web services created models that can be associated to ActiveRecord ones? Looked at ActiveResource and Her, but unfortunately association to AR models is not supported. I have a Rails API application and a few apps that need to consume this API. I created an engine with ActiveResource models and I use it in these apps. The problem is that I cannot associate app models (AR) to engine ones
[14:25:05] mauro1254: Ping timeout: 276 seconds

2018-06-13

[04:41:52] mauro1254: has joined #RubyOnRails
[04:42:15] mauro1254: Hi folks, is there a gem that let you consume json web services and create associations with ActiveRecord models? Looked at ActiveResource and Her, but unfortunately association to AR models is not supported.
[06:17:57] mauro1254: has joined #RubyOnRails
[06:31:02] mauro1254: Is there a gem that let you consume a json web services created models that can be associated to ActiveRecord ones? Looked at ActiveResource and Her, but unfortunately association to AR models is not supported.
[06:33:45] mauro1254: I have a Rails API application and a few apps that need to consume this API. I created an engine with ActiveResource models and I use it in these apps. The problem is that I cannot associate app models to engine ones.
[06:38:35] mauro1254: dminuoso : let suppose to have Project entity on app and Faculty entity on engine and that a project belongs to a faculty, I would like to define the belongs_to association on Project entity
[06:39:35] mauro1254: dminuoso : let suppose to have a collection of projects, I would like something to "includes(:faculty)" and avoid the N+1 query (http calls) problem
[06:40:35] mauro1254: Faculty is an ActiveResource model that lives in the engine. This model consume the webservice
[06:47:03] mauro1254: dminuoso : an easy solution is the following: replace ActiveResource models with ActiveRecord one and share the connnection to the database
[06:48:01] mauro1254: dminuoso : I prefer the first solution, but I don't know how to easily implement it
[09:13:55] mauro1254: Ping timeout: 260 seconds

2018-06-12

[08:54:10] mauro1254: has joined #RubyOnRails
[12:14:06] mauro1254: za1b1tsu : Hello
[12:14:40] mauro1254: za1b1tsu : you can fork the project repo, clone it and then work on it
[12:15:57] mauro1254: Hi folks, is there a gem that et you consume json web services and create associations with ActiveRecord models? Looked at ActiveResource and Her, but unfortunately association to AR models is not supported.
[15:39:05] mauro1254: Quit: Textual IRC Client: www.textualapp.com
[19:53:13] mauro1254: has joined #RubyOnRails
[19:53:44] mauro1254: Hi folks, is there a gem that et you consume json web services and create associations with ActiveRecord models? Looked at ActiveResource and Her, but unfortunately association to AR models is not supported.
[21:03:35] mauro1254: Ping timeout: 260 seconds

2018-05-25

[09:53:05] mauro1254: has joined #RubyOnRails
[12:28:07] mauro1254: Hi folks, I have defined a custom exception Service::Search::Invalid that I raise when search parameters are not valid (negative page, negative items per page, ...). I would like the exception to be handled the ame way of ActiveRecord::InvalidRecord. How can I do this?
[12:37:00] mauro1254: Is ActionDispatch::ExceptionWrapper.rescue_responses.merge!("Service::Search::Invalid" => :unprocessable_entity) a good practice?
[12:51:30] mauro1254: Ping timeout: 245 seconds
[13:28:01] mauro1254: has joined #RubyOnRails
[13:50:15] mauro1254: Ping timeout: 245 seconds

2018-05-24

[14:39:26] mauro1254: has joined #RubyOnRails
[15:34:35] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-05-18

[06:26:44] mauro1254: has joined #RubyOnRails
[06:28:31] mauro1254: Is there a way to create associations between ActiveRecord models and ActiveResource ones?
[07:33:56] mauro1254: tbuehlmann : I have a few apps that need to share data and my idea is to create an API only app + full engine based on activeresources. Doing this way I can use & manage date inside each app. The problem is the associations with app specific models. What do you think? Is there a better approach to achieve what I want?
[07:34:42] mauro1254: Of course the engine si a dependency of each app that need the shared data.
[15:17:53] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-05-17

[14:23:00] mauro1254: has joined #RubyOnRails
[14:48:55] mauro1254: Hi folks, is there a way to create associations between ActiveRecord models and ActiveResource ones
[15:30:57] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-05-16

[14:46:06] mauro1254: has joined #RubyOnRails
[14:46:42] mauro1254: Hi folks, is there a way to create associations between ActiveRecord models and ActiveResource ones
[15:22:32] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-05-02

[12:16:15] mauro1254: Client Quit
[12:16:15] mauro1254: has joined #RubyOnRails
[12:38:39] mauro1254: has joined #RubyOnRails
[12:40:38] mauro1254: Hi folks, why is collation_connection set to utf8_general_ci even if I specify collation: utf8_unicode_ci in database.yml?
[15:22:07] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-04-20

[06:27:53] mauro1254: has joined #RubyOnRails
[09:52:50] mauro1254: Ping timeout: 276 seconds

2018-04-19

[14:56:02] mauro1254: has joined #RubyOnRails
[14:58:46] mauro1254: Hi folks, I need to have certain data manageable/available from/to a dozen of apps. What dou you think about having a Rails API app and a mountable engine, is there an easier way to achieve that?
[15:04:53] mauro1254: dminuoso : data consists in entities (models) that I want to be available to all applications and that can be associated to application specific models.
[15:05:50] mauro1254: dminuoso : np
[15:07:02] mauro1254: dminuoso : with a mountable engine I can manage (CRUD) entities in each application
[15:08:56] mauro1254: dminuoso : the fact is that I don't want to build the view layer ao dozen of times (forms for creation/editing, ecc)
[15:09:16] mauro1254: dminuoso : how ould you handle that without a mountable engine?
[15:10:14] mauro1254: dminuoso : sorry, from a user point of view.
[15:23:57] mauro1254: dminuoso : do you know an easier way to achieve that?
[15:27:44] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-04-12

[07:21:58] mauro1254: Quit: Textual IRC Client: www.textualapp.com
[15:18:38] mauro1254: has joined #RubyOnRails
[15:20:16] mauro1254: When connecting to db console (bin/rails dbconsole) I get collation_connection = utf8_general_ci even if in database.yml I specify collation = utf8_unicode_ci, why?
[15:21:55] mauro1254: I use show variables like "%collation%"; to check the values
[15:24:33] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-04-11

[09:18:58] mauro1254: has joined #RubyOnRails
[09:22:34] mauro1254: Hi folks. In which case is table collation specified in schema.rb? I'm asking because for certain tables it is specified, for other tables it isn't.
[09:22:56] mauro1254: Btw I'm using MySQL.
[12:21:55] mauro1254: Hi folks, concerning database schema file (schema.rb), how are charset & collation determined?
[12:33:28] mauro1254: Ping timeout: 240 seconds
[14:14:05] mauro1254: has joined #RubyOnRails

2018-03-27

[15:47:25] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-03-26

[08:42:15] mauro1254: has joined #RubyOnRails
[12:45:01] mauro1254: Hi folks, a question about a migration that creates a new table. How are character set / collation determined? In schema.rb an option for the character set is added, in the migration it isn't. I'm on Rails 5.1.5.
[12:45:51] mauro1254: Will defaults from server (MySQL i my case) be used?

2018-03-22

[16:24:39] mauro1254: has joined #RubyOnRails
[16:52:35] mauro1254: Hi folks, I have a question concerning database migrations. I'm on mysql. Why ins't there any options related to the collation for tables created through Rails 5.1 in schema.rb?
[16:57:19] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-03-06

[16:12:49] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-03-05

[10:05:28] mauro1254: has joined #RubyOnRails
[10:09:27] mauro1254: Hi folks, I have an issue with foreign keys when generating models in a subfolder (within a module)

2018-03-03

[04:40:10] mauro1254: Ping timeout: 240 seconds

2018-03-02

[10:43:24] mauro1254: has joined #RubyOnRails
[13:18:56] mauro1254: Remote host closed the connection
[13:37:53] mauro1254: has joined #RubyOnRails
[13:38:32] mauro1254: Hi folks, which is the best approach to handle exceptions (AR validation errors) in web services?
[13:52:58] mauro1254: dminuoso : I'm using bang version of methods
[13:53:48] mauro1254: When creating multiple records isn't the exception approach better?
[13:55:44] mauro1254: dminuoso : I also use AR Transaction
[13:57:31] mauro1254: dminuoso : yes, if I catch the validation exception then I need to manually handle the rollback

2018-01-23

[09:01:30] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-01-22

[12:38:11] mauro1254: has joined #RubyOnRails
[12:38:29] mauro1254: Hi folks, I use LetterOpenerWeb engine in development. LettersController (https://github.com/fgrehm/letter_opener_web/blob/master/app/controllers/letter_opener_web/letters_controller.rb) inherits from ApplicationController (https://github.com/fgrehm/letter_opener_web/blob/master/app/controllers/letter_opener_web/application_controller.rb) defined in the gem, but filters set on ApplicationController of my app are executed... Why?

2018-01-19

[13:43:28] mauro1254: has joined #RubyOnRails
[14:13:28] mauro1254: Hi folks, I use LetterOpenerWeb engine in development. LettersController (https://github.com/fgrehm/letter_opener_web/blob/master/app/controllers/letter_opener_web/letters_controller.rb) inherits from ApplicationController (https://github.com/fgrehm/letter_opener_web/blob/master/app/controllers/letter_opener_web/application_controller.rb) defined in the gem, but filters set on ApplicationController of my app are executed... Why?
[15:32:43] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2018-01-16

[16:19:40] mauro1254: has joined #RubyOnRails
[16:24:16] mauro1254: Hi folks, is there an easy way (maybe through a gem) to sync a DB table with REST Web Api?
[16:24:37] mauro1254: This gem should be able to create/update records and also let me map fields...
[16:29:01] mauro1254: I don't want to POST, just want to pull data
[16:31:35] mauro1254: cpruitt It is not complicated, but I have to do it in several apps
[16:34:36] mauro1254: Hehe, ok :)
[16:35:36] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2017-12-22

[07:42:38] mauro1254: has joined #RubyOnRails
[07:43:54] mauro1254: Hi folks, best practices for migrations & seeds?
[10:13:17] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2017-11-30

[15:06:08] mauro1254: has joined #RubyOnRails
[15:11:33] mauro1254: Hi folks, I have a question about session / flash. I have a dozen of Rails 5.1.4 applications running on subdomains (in order to easily have SSO). I would like to have some data accessibile by all applications (eg. authenticated user id) and other date accessible only by the application that stored it. Is it possible?
[15:40:11] mauro1254: dminuoso : thx
[15:41:33] mauro1254: dminuoso : yes, it is just the user id
[15:41:48] mauro1254: I would like an app to act as oauth provider
[15:45:47] mauro1254: dminuoso : I tried to implement this solution a few months ago but I had problems with logout
[15:50:07] mauro1254: dminuoso : Yes, I followed a serie of tutorials on binarywebpark.com
[15:50:27] mauro1254: btw, am I allowed to post links?
[15:50:47] mauro1254: http://www.binarywebpark.com/oauth-2-tutorial/
[15:51:00] mauro1254: http://www.binarywebpark.com/setting-oauth-provider-ruby-rails-doorkeeper-devise/
[15:51:22] mauro1254: http://www.binarywebpark.com/oauth-client-application-testing-rails/
[15:57:25] mauro1254: dminuoso : which things?
[16:03:52] mauro1254: dminuoso : I'm using ActiveRecord session store
[16:35:08] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2017-11-07

[13:50:13] mauro1254: has joined #RubyOnRails
[13:52:55] mauro1254: Hi folks, is it possible to associate objetcs in a has_many association without saving it to the DB but delegating it to the parent record?
[14:08:44] mauro1254: alfie : I have a record with a few associated records, i would like to set new associated records (add new, remove o updated already associated) and reflect changes to the database when I save parent object
[14:11:49] mauro1254: Associated objects are saved even if the parent object is not valid
[14:35:45] mauro1254: Ping timeout: 250 seconds
[15:09:59] mauro1254: has joined #RubyOnRails
[15:14:37] mauro1254: Client Quit

2017-10-26

[14:31:33] mauro1254: has joined #RubyOnRails
[14:33:25] mauro1254: Hi folks, how can I set default_url_options[:host] in a thread safe mode for ActionMailer::Base when it depends on the request?
[14:58:23] mauro1254: https://coderwall.com/p/hzdnca/action-mailer-host
[14:58:31] mauro1254: Is this the right way?
[16:57:55] mauro1254: Quit: Textual IRC Client: www.textualapp.com

2017-10-11

[09:46:35] mauro1254: matthewd : I understand that the number of queries is different. I want to preload a dozen of associations but only query agains 3 of them. left_joins + preload seems to be faster, I would like to know if it is safe to switch to left_joins + preload
[09:49:40] mauro1254: matthewd : Do the two alternatives return the same resultsset?
[09:51:46] mauro1254: matthewd : what do you mean with same rows but not the same results?
[09:53:56] mauro1254: matthewd : yes, the fact is that using eager_load (includes + references) it is slower than using left_joins + preload (to avoid N+1 queries)
[15:28:36] mauro1254: Quit: Textual IRC Client: www.textualapp.com