-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Sorry for the noise, I just found a better solution so the autoloading
works the way it should: the views are reloaded only when they have
been modified. It not modified, the cached versiones are used, which
are much faster :).

Add this to environments/development.rb:

  config.reload_classes_only_on_change = true
  config.watchable_dirs[File.join(config.root, "app/views")] = ["dryml"]

Regards,
Ignacio

El 03/06/12 14:34, Ignacio Huerta escribió:
> Hi,
> 
> More news on Rails 3.2 and Hobo. I was tuning the views in 
> front_site.dryml when I realised that the changes on the views
> were not working nicely: sometimes they changed, sometimes they
> stayed for a while and took a few page reloads to be read.
> 
> It seems that the new Rails 3.2 autoloading is fighting Dryml. The 
> quick workaround is to disable this feature adding this line to
> your config/development.rb:
> 
> config.reload_classes_only_on_change = false
> 
> 
> I believe it's possible to make Hobo tell Rails what to reload when
> a Dryml file is modified, and improve the development mode speed.
> More info about this:
> 
> http://wondible.com/2012/01/13/rails-3-2-autoloading-in-theory/
> 
> Regards, Ignacio
> 
> El 03/06/12 07:55, Ignacio Huerta escribió:
>> You are welcome :)
> 
>> I also noticed that after testing the application for speed in 
>> production I had to precompile the assets (rake 
>> assets:precompile). This in turn broke my development
>> environment, because the JavaScript is sent twice to the browser:
>> - Compressed as front.js and applicacion.js - Uncompressed as all
>> the small files (jquery, jquery-ui...)
> 
>> By the moment I solved it removing the files on 
>> public/assets/*js*. I'll have to read a bit more about the asset 
>> pipeline because I'm a bit lost yet.
> 
>> Regards, Ignacio
> 
>> El 03/06/12 04:11, owendall escribió:
>>> Thanks for taking the time to drill down on this. Might save 
>>> Bryan some cycles..
> 
>>> Sent from my iPhone
> 
>>> On Jun 2, 2012, at 1:03 PM, Ignacio Huerta
>>> <[email protected]> wrote:
> 
>>> Hi!
> 
>>> I found some time to play around with Hobo 1.4 (github master) 
>>> and Rails 3.2. I tried the thingybob tutorial and started with 
>>> the agility tutorial with only a few small workarounds:
> 
> 
>>> Rails version (resolved) ------------- * I changed Rails 
>>> dependencies in gemspecs to Rails 3.2
> 
> 
>>> Error: uninitialized constant ActionView::TemplateHandlers 
>>> (resolved) 
>>> ---------------------------------------------------------- * I
>>>  changed class name to ActionView::Template::Handlers and it 
>>> didn't complain any more.
> 
> 
>>> Error: private method `attributes_protected_by_default' 
>>> (workaround) 
>>> ------------------------------------------------------- * I 
>>> commented a line on a permissions file. I think it's not a big
>>>  risk, but I'd feel better if someone with more experience
>>> could take a better look at it.
> 
> 
>>> In the home page, the user fields are not shown (workaround) 
>>> ----------------------------------------------- * I added 
>>> attr_accessible to the user model: attr_accessible :name, 
>>> :email_address, :password, :password_confirmation * This has
>>> to be done to every model, so the forms are rendered. I
>>> believe this could be done somewhere else in Hobo as a default
>>> setting for all the fields.
> 
> 
>>> In the edit page, text fields are rendered as inputs (pending)
>>>  ---------------------------------------------------- I
>>> noticed that in the new-page form, the "body" renders a
>>> textarea. But when you try to edit a record, you get an input
>>> (and lose all new lines). This is not critical for me right
>>> now, so I'm gonna leave for a while and see if I can find a
>>> workaround later.
> 
> 
>>> I made a new branch and made a commit with these small changes 
>>> if you want to try it: 
>>> https://github.com/iox/hobo/commit/a9ff194ac95d9a547bb67384c5d07042535dd962
>
>>>  To create a new application with this code there are several 
>>> options. Just read the great documentation in 
>>> hobo/CHANGES-1.4.txt.
> 
>>> Warm regards, Ignacio
> 
>>>> 
>>>> -- You received this message because you are subscribed to
>>>> the Google Groups "Hobo Users" group. To post to this group,
>>>> send email to [email protected]. To unsubscribe from
>>>> this group, send email to
>>>> [email protected]. For more options,
>>>> visit this group at 
>>>> http://groups.google.com/group/hobousers?hl=en.
>>>> 
> 
> 
> 

- -- 
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/LXC4ACgkQBPlUJ6RHaOTs+gCfTWgcqrFr4gWC5b9ZCkpaR5gj
RFIAnA3NVq/bHjv9KC7Di+uyLfTK+fWV
=47Fy
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to