[Rails] Article describing how switching from Sprockets to Webpack can make your page load faster

2016-02-29 Thread Rodrigo Rosenfeld Rosas
This is actually a series of 3 articles explaining how to get the best load time for an SPA and why Sprockets will not allow you to get the last required bits. More specifically, it doesn't support code splitting (lazy code loading) out of the box and it's not easy to implement that. But webpac

[Rails] Re: auto-reloading and local gems

2014-10-29 Thread Rodrigo Rosenfeld Rosas
Just FYI, I've already achieved this using some techniques just after posting the question but I'm still interested in knowing whether there's some official way of supporting that flow... Em quarta-feira, 29 de outubro de 2014 14h27min45s UTC-2, Rodrigo Rosenfeld Rosas escreve

[Rails] auto-reloading and local gems

2014-10-29 Thread Rodrigo Rosenfeld Rosas
Hi there. I'm interested in extracting parts of my application to a local gem in vendor/gems. The reason I haven't done that yet is that I'm not sure about what would be the best way to handle auto-reloading for such gems... I'm pretty aware of the argument that if you're doing TDD you don't ne

[Rails] How to use rails runner altogether with bundle install --without development test?

2013-09-12 Thread Rodrigo Rosenfeld Rosas
In my Capistrano recipes, bundle install --without development test is performed. Then I tried to run a script with: bundle exec rails r scripts/my-script.rb It complained about not finding a development-only gem dependency that is not even required by that script. How am I supposed to call ra

[Rails] Rails web console

2010-11-07 Thread Rodrigo Rosenfeld Rosas
Hi, I've just released the rails-web-console gem. Have you ever wanted to test Rails scripts directly in the browser? Now you can. It'll be run in a controller's instance binding, so you can see your session, for instance. Installation is as simple as adding this to your Gemfile (only Rails 3 is

[Rails] Re: Restless Rails

2008-11-13 Thread Rodrigo Rosenfeld Rosas
Rob Nichols wrote: > > Is Rails moving to a pure RESTful design? I don't like REST but love > Rails. I'd hate to think that as Rails develops it will become more > difficult to use it RESTlessly. > ... Rob, I couldn't agree more with you. I don't see any advantages on using restful resources un

[Rails] Is someone using symlinked directories in views?

2008-11-05 Thread Rodrigo Rosenfeld Rosas
I tried to ask this question in a more in-depth discussion in: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/3186764740ccd8a5 But, maybe it was so big that anyone has read it. So I'm trying to simplify. Is someone using symlinked directories in views? Or, in other way, is

[Rails] Re: How? Why? Production Woes

2008-09-09 Thread Rodrigo Rosenfeld Rosas
Anyway, you should check this one: /apps/listjutsu/releases/20080909133505/app/models/user.rb:4 Rodrigo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send em

[Rails] Re: How? Why? Production Woes

2008-09-09 Thread Rodrigo Rosenfeld Rosas
Did you try to: rake db:migrate VERSION=0 rake db:migrate You will probably face the same problem... Rodrigo. Jeremy wrote: > > So, I can migrate without error in development, but when I migrate in > production I get what's below. The gems are the same, rails is the > same version...what am

[Rails] Re: (Dir.glob("[EMAIL PROTECTED]/**/*/**") | Dir.glob("[EMAIL PROTECTED]/**")) != Dir.glob("[EMAIL PROTECTED]/**") ?

2008-09-09 Thread Rodrigo Rosenfeld Rosas
Frederick Cheung wrote: > > > On 9 Sep 2008, at 14:27, Rodrigo Rosenfeld Rosas wrote: > >> >> I tried to ask this question once in Ruby-talk and inside another >> post in >> this list. No one answered me and I doubt anyone is able to answer it. >>

[Rails] (Dir.glob("[EMAIL PROTECTED]/**/*/**") | Dir.glob("[EMAIL PROTECTED]/**")) != Dir.glob("[EMAIL PROTECTED]/**") ?

2008-09-09 Thread Rodrigo Rosenfeld Rosas
I tried to ask this question once in Ruby-talk and inside another post in this list. No one answered me and I doubt anyone is able to answer it. So, I tried changing the subject in a weird, although correct question, to see if someone could help me. In actionpack/lib/action_view/paths.rb, there