Re: [Rails-core] Extending controllers and models of Rails 3.2+ Engines

2012-10-01 Thread Antonio Tapiador del Dujo
I found the time to package the decorator pattern into a gem: http://rubygems.org/gems/rails_engine_decorators https://github.com/atd/rails_engine_decorators Hope it is helpful. El 22/07/12 23:31, Weston Platter escribió: Added 2 strategies for extending Engine Models. Feedback is welcome. ht

Re: [Rails-core] Extending controllers and models of Rails 3.2+ Engines

2012-10-01 Thread Antonio Tapiador del Dujo
### App Rewrite the User Subscriptions module not the class itself. Maybe the example is not the best, but what do you think of this approach of having all the behaviour you want to expose in mixins and seeing changing the models or controllers as a bad smell. Does it make sense? On Oct 1, 2012, at

[Rails-core] patch for i18n in engines

2009-03-24 Thread Antonio Tapiador del Dujo
A patch for supporting i18n in Engines: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2325-i18n-support-for-engines --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To

[Rails-core] GSoC proposal: CMS engine

2009-03-31 Thread Antonio Tapiador del Dujo
Hello all, I've been working for more than a year in a Rails Engine for Content Management System http://github.com/atd/cmsplugin/tree/master This means authentication, authorization, resource import/export, categories, tags, etc... These are common features in web applications not currently c

[Rails-core] Re: GSoC proposal: CMS engine

2009-03-31 Thread Antonio Tapiador del Dujo
ne (http://github.com/vigetlabs/ > sandstone/tree/master). > > How is this different from other cms plugins available for rails? What > does your solution provide that others do not? > > On Mar 31, 9:23 am, Antonio Tapiador del Dujo > > wrote: > > Hello all, > >

Re: [Rails-core] Re: I18n support for plugins/gems?

2009-12-02 Thread Antonio Tapiador del Dujo
El Domingo, 30 de Agosto de 2009 20:24:16 Sven Fuchs escribió: > On 30.08.2009, at 20:00, Michael Koziarski wrote: > >> I'll have a look at a patch. I assume this can go into 2.3.x? > > > > Let's start with master and look at backporting if it's simple and > > 'purely additive'. > > I guess it is

Re: [Rails-core] Nested Models Projects :has_many Tasks and Tasks :has_many Notes

2010-03-26 Thread Antonio Tapiador del Dujo
Hi jesusOmar, first of all, let me tell you that this question should go to rubyonrails-talk group (http://groups.google.com/group/rubyonrails-talk). This one (rails-core) is intended to other topics, related with the development of Rails itself. As for your question, you have to write "task" in

Re: [Rails-core] api.rubyonrails.org is showing version 2.3.3

2010-05-27 Thread Antonio Tapiador del Dujo
BTW, is there any way to get the docs for 3.0.0.beta3? El Martes, 25 de Mayo de 2010 17:35:31 Xavier Noria escribió: > On Tue, May 25, 2010 at 4:01 PM, Michael Breen wrote: > > I wasn't exactly sure where this should go but I figured this would be a > > good place start. > > Thanks for the heads

Re: [Rails-core] Re: rendering a partial with an array as its :object

2010-10-28 Thread Antonio Tapiador del Dujo
I suffered this. I was very annoyed because Rails was rendering nothing. Then I realized I was passing an empty array and I remembered this issue! +1 El Sábado, 23 de Octubre de 2010 23:05:06 Eugene M. Magdel escribió: > Had the same problem! Thanks for reporting! > > On Sep 30, 1:28 pm, James

Re: [Rails-core] Re: rendering a partial with an array as its :object

2010-10-29 Thread Antonio Tapiador del Dujo
ok on it. > > Thank you :) > > On 28 ต.ค. 2553, at 21:08, Antonio Tapiador del Dujo wrote: > > I suffered this. I was very annoyed because Rails was rendering nothing. > > Then I realized I was passing an empty array and I remembered this > > issue! > > > > +1

Re: [Rails-core] Feature: ActiveResource - Adding associations through reflections

2011-03-01 Thread Antonio Tapiador del Dujo
Hi Markus, can associated records be created, using accepts_nested_attributes_for ? That would be awesome! El Lunes, 28 de Febrero de 2011 17:16:07 markusschwed escribió: > Hello everyone, > > I'm new in contributing and i saw in the contributing-guides, that i > have to write an email at this

Re: [Rails-core] Time to fix PartialRenderer#partial_path

2011-04-07 Thread Antonio Tapiador del Dujo
El Miércoles, 6 de Abril de 2011 17:07:48 Samuel Kadolph escribió: > For the longest time PartialRenderer#partial_path has prefixed the > prefix of the current controller when it is nested in a module. This > hasn't been a problem (because nesting controllers wasn't that common) > but with 3.1 stri

[Rails-core] URIs including [ and ] are not compliant with RFC3986

2011-04-25 Thread Antonio Tapiador del Dujo
According to RFC 3986, '[' and ']' are reserved characters. However, Rails 3.0.7 is not escaping them. This is fixed in master by this commit: https://github.com/rails/rails/commit/52b71c01fd3c8a87152f55129a8cb3234190734a Can this fix be included in 3.0.x ? -- You received this message because

[Rails-core] Request format.all

2011-05-10 Thread Antonio Tapiador del Dujo
Requesting /attachments/1.all does not work in Rails 3. It was changed here: https://github.com/rails/rails/commit/7e280c3bff8ac25f1c1938aeaeb1d0b4c0fbb726 The use case is a show action such as: def show @attachment = Attachment.find(params[:id]) respond_to do |format| format.html f

Re: [Rails-core] Google Summer of Code - 2012

2012-02-20 Thread Antonio Tapiador del Dujo
On Viernes 17 Febrero 2012 06:25:47 Ilya Grigorik escribió: > Right, so with that in mind.. Is anyone on Rails core looking at this > currently? > > FWIW, if there are any questions about the process, etc, I'm willing to > help and see if I can get help from inside Google. I'd love to see Rails as

Re: [Rails-core] Re: Please, keep changing!

2012-03-08 Thread Antonio Tapiador del Dujo
On Domingo 04 Marzo 2012 20:36:12 Michael Schuerig escribió: > On Thursday 01 March 2012, Consu wrote: > > What will it cost in real money, to upgrade a bigger Rails App? > > For the past few weeks I've been working on Rails app that has grown > over about 3 years to around 25kloc. The app was stu

Re: [Rails-core] Extending controllers and models of Rails 3.2+ Engines

2012-07-20 Thread Antonio Tapiador del Dujo
It seems pretty useful for other engines as well! Any chances to be included in Rails? On 13/07/12 06:00, Ryan Bigg wrote: We're currently discussing the best way to do this on Forem's issue #260 (https://github.com/radar/forem/pull/260). Kunal there wants to add methods to or modify the Forem

[Rails-core] Re: Polymorphic resources enhancement review request

2008-03-07 Thread Antonio Tapiador del Dujo
El Wednesday 27 February 2008 18:39:08 wildchild escribió: > http://dev.rubyonrails.org/ticket/11031 > > This patch adds a new option to map.resources named :polymorphic, > which will attach a :type requirement to the generated route. It keeps > URLs absolutely clean. Useful for me! I'm already u

[Rails-core] Re: Polymorphic resources enhancement review request

2008-03-07 Thread Antonio Tapiador del Dujo
El Thursday 06 March 2008 14:09:16 Chris Cruft escribió: > Wildchild, > Your patch takes an approach that differs from the one taken by the > ResourcesController plugin. I like the RESULT of your patch (:*_type > key in the params) but, as shown by the RC plugin, I'm not sure the > specification

[Rails-core] Hint on routes requirements

2008-03-31 Thread Antonio Tapiador del Dujo
Hi, I posted a message to rails talk about a problem with requirements option in routes, without answers: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/9f0dafe1a975de17/96dd4f2fa96ebc75#96dd4f2fa96ebc75 Could anybody please give a hint about where does Rails process :requi

[Rails-core] New Request Forgery Protection breaks AtomPub implementations

2008-06-20 Thread Antonio Tapiador del Dujo
Rails 2.1 Request Forgery Protection is incompatible with AtomPub implementations New 'verifiable_request_format?' function (action_controller/request_forgery_protection.rb:101) is banning DELETE requests, where request.content_type is nil It also forbids posting any type of media, like imag

[Rails-core] Re: New Request Forgery Protection breaks AtomPub implementations

2008-06-20 Thread Antonio Tapiador del Dujo
El Friday 20 June 2008 19:04:04 Manfred Stienstra escribió: > On Jun 20, 2008, at 6:49 PM, Antonio Tapiador del Dujo wrote: > > Rails 2.1 Request Forgery Protection is incompatible with > > implementations > > > > New 'verifiable_request_format?&

[Rails-core] Re: New Request Forgery Protection breaks AtomPub implementations

2008-06-30 Thread Antonio Tapiador del Dujo
El Sunday 29 June 2008 23:02:58 Rick Olson escribió: > On 6/20/08, Antonio Tapiador del Dujo <[EMAIL PROTECTED]> wrote: > > Rails 2.1 Request Forgery Protection is incompatible with AtomPub > > implementations > > > > New 'verifiable_request_for

[Rails-core] Feedback: polymorphic_path and single resources

2008-08-29 Thread Antonio Tapiador del Dujo
With single resources: map.resource :profile polymorphic_path(@profile) generates profile_path but fails because of the remaining @profile object, I guess: NoMethodError: You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym from /usr/lib/ruby