hobo 1.3 and 2.0 rapid pages auto update

17 views
Skip to first unread message

Vivek Sampara

unread,
Oct 11, 2012, 1:26:26 PM10/11/12
to hobo...@googlegroups.com
Hi guys, 

I've been a huge fan of hobo 1.3 but having a really bad time in 2.0 because of some new changes. In the dev mode, i dont see any changes in the view when edit any of the dryml files be it , model/view.dryml or taglibs/application.dryml. 

in hobo 1.3 , i could make any number of changes and all i have to do is refresh the page to see it live but now , only if restart the server i can see the changes. is there anything i can do make it refresh automatically without the long process ? 

i tried touch ~/appdir/views/mode/view.dryml 
         touch ~/appdir/views/taglibs/application.dryml
         touch all the rapid pages and forms 

but no change. 

thanks
Vivek 

Bryan Larsen

unread,
Oct 11, 2012, 1:34:05 PM10/11/12
to hobo...@googlegroups.com
>
> i tried touch ~/appdir/views/mode/view.dryml

This should work.

Do you have config.watchable_dirs[File.join(config.root, 'app/view')]
= ['dryml'] in your config/environments/development.rb?

That was in the 2.0.0.pre3 announcement, but it didn't make it into
the CHANGES document. I'll fix that now.

cheers,
Bryan

Vivek Sampara

unread,
Oct 11, 2012, 1:40:21 PM10/11/12
to hobo...@googlegroups.com
Thank Bryan ,

Any reason for this change ? why isn't that line normally in the development.rb and work just like 1.3 ? 

Vivek 

Bryan Larsen

unread,
Oct 11, 2012, 1:42:45 PM10/11/12
to hobo...@googlegroups.com
On Thu, Oct 11, 2012 at 1:40 PM, Vivek Sampara <ravens...@gmail.com> wrote:
> Thank Bryan ,
>
> Any reason for this change ? why isn't that line normally in the
> development.rb

It is if you generate your application with Hobo 2.0.0.pre3.

> and work just like 1.3 ?

because the way we do it now is a lot faster

cheers,
Bryan
Reply all
Reply to author
Forward
0 new messages