[Hobo Users] Re: Ajax progress

2014-07-07 Thread umuro
Could you also write a piece of dryml as an example to demonstrate 
spinner-next-to ? To prevent confusion.

On Saturday, July 5, 2014 7:39:23 PM UTC+2, umuro wrote:

 How to set the position of the ajax-progress on a hobo bootstrap page?


-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


Re: [Hobo Users] Re: Ajax progress

2014-07-07 Thread Ignacio Huerta
Yes, sure. This should work:

h3 id=supertitleAjax test/h3

a class=btn href=# updates=#superpartial
spinner-next-to=supertitle Ajax Button/a

div part=superpartial%= rand.to_s %/div

Warm regards,
Ignacio



El 07/07/14 09:46, umuro escribió:
 Could you also write a piece of dryml as an example to
 demonstrate spinner-next-to ? To prevent confusion.
 
 On Saturday, July 5, 2014 7:39:23 PM UTC+2, umuro wrote:
 
 How to set the position of the ajax-progress on a hobo bootstrap page?
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Hobo Users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to hobousers+unsubscr...@googlegroups.com
 mailto:hobousers+unsubscr...@googlegroups.com.
 To post to this group, send email to hobousers@googlegroups.com
 mailto:hobousers@googlegroups.com.
 Visit this group at http://groups.google.com/group/hobousers.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


[Hobo Users] Re: Rendering a DRML file in a model

2014-07-07 Thread umuro
Greate. It works on development as you tell me.

However, it did not work when I deployed to heroku. It was not finding 
DRYML related classes. And I started exceptions one by one:

 require 'dryml/template_environment'
 require 'dryml/dryml_builder'
 require 'dryml/parser'
 require 'dryml/parser/document'
 require 'dryml/parser/source'
 require 'dryml/parser/elements'
 require 'dryml/parser/tree_parser'
 require 'dryml/parser/base_parser'
 require 'dryml/parser/element'
 require 'dryml/parser/attribute'
 require 'dryml/parser/text'

...

 
No this is not the right way! How can I require/load the dryml parser?

On Thursday, July 3, 2014 9:32:05 PM UTC+2, umuro wrote:

 For *ERB* you can do this:  
  template = ERB.new File.new(app/views/oeb_stylesheets/show.css.erb).
 read, nil, %

 Is there a way to do it for *DRYML*?


-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


[Hobo Users] Re: Rendering a DRML file in a model

2014-07-07 Thread umuro
The final working version has this
require 'dryml/template_environment'
require 'dryml/dryml_builder'
require 'dryml/parser'
require 'dryml/parser/document'
require 'dryml/parser/source'
require 'dryml/parser/elements'
require 'dryml/parser/tree_parser'
require 'dryml/parser/base_parser'
require 'dryml/parser/element'
require 'dryml/parser/attribute'
require 'dryml/parser/text'
require 'dryml/scoped_variables'

require 'dryml'
require 'dryml/railtie'

As far as I can see the only difference of production environment is eager 
loading.

On Monday, July 7, 2014 11:34:00 AM UTC+2, umuro wrote:

 Greate. It works on development as you tell me.

 However, it did not work when I deployed to heroku. It was not finding 
 DRYML related classes. And I started exceptions one by one:

 require 'dryml/template_environment'
 require 'dryml/dryml_builder'
 require 'dryml/parser'
 require 'dryml/parser/document'
 require 'dryml/parser/source'
 require 'dryml/parser/elements'
 require 'dryml/parser/tree_parser'
 require 'dryml/parser/base_parser'
 require 'dryml/parser/element'
 require 'dryml/parser/attribute'
 require 'dryml/parser/text'

 ...

  
 No this is not the right way! How can I require/load the dryml parser?

 On Thursday, July 3, 2014 9:32:05 PM UTC+2, umuro wrote:

 For *ERB* you can do this:  
  template = ERB.new File.new(app/views/oeb_stylesheets/show.css.erb).
 read, nil, %

 Is there a way to do it for *DRYML*?



-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


Re: [Hobo Users] Re: Rendering a DRML file in a model

2014-07-07 Thread Ignacio Huerta
Thanks for sharing the solution, that can be certainly useful :).

Warm regards,
Ignacio

El 07/07/14 12:26, umuro escribió:
 The final working version has this
 |
 require'dryml/template_environment'
 require'dryml/dryml_builder'
 require'dryml/parser'
 require'dryml/parser/document'
 require'dryml/parser/source'
 require'dryml/parser/elements'
 require'dryml/parser/tree_parser'
 require'dryml/parser/base_parser'
 require'dryml/parser/element'
 require'dryml/parser/attribute'
 require'dryml/parser/text'
 require'dryml/scoped_variables'

 require'dryml'
 require'dryml/railtie'
 |
 
 As far as I can see the only difference of production environment is
 eager loading.
 
 On Monday, July 7, 2014 11:34:00 AM UTC+2, umuro wrote:
 
 Greate. It works on development as you tell me.
 
 However, it did not work when I deployed to heroku. It was not
 finding DRYML related classes. And I started exceptions one by one:
 
 require 'dryml/template_environment'
 require 'dryml/dryml_builder'
 require 'dryml/parser'
 require 'dryml/parser/document'
 require 'dryml/parser/source'
 require 'dryml/parser/elements'
 require 'dryml/parser/tree_parser'
 require 'dryml/parser/base_parser'
 require 'dryml/parser/element'
 require 'dryml/parser/attribute'
 require 'dryml/parser/text'
 
 ...
 
  
 No this is not the right way! How can I require/load the dryml parser?
 
 On Thursday, July 3, 2014 9:32:05 PM UTC+2, umuro wrote:
 
 For *ERB* you can do this:  
 |
  
 template=ERB.newFile.new(app/views/oeb_stylesheets/show.css.erb).read,nil,%
 
 |
 Is there a way to do it for *DRYML*?
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Hobo Users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to hobousers+unsubscr...@googlegroups.com
 mailto:hobousers+unsubscr...@googlegroups.com.
 To post to this group, send email to hobousers@googlegroups.com
 mailto:hobousers@googlegroups.com.
 Visit this group at http://groups.google.com/group/hobousers.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


[Hobo Users] Hobo errors on Windows 7 x64.

2014-07-07 Thread Nathan Peters
I'm started in on the Agility tutorial and immediately got this error when 
trying to run hobo new agility:

*The template [C:/Users/Computer/AppData/Local/Temp/hobo_app_template] 
could not be loaded. Error: Unable to activate rails-4.0.8, because 
activesupport-4.1.4 conflicts with activesupport (= 4.0.8), 
actionpack-4.1.4 conflicts with actionpack (= 4.0.8), railties-4.1.4 
conflicts with railties (= 4.0.8)*

My versions:

ruby 2.0.0p481 (2014-05-08) [i386-mingw32]
Rails 4.1.4
Hobo Command Line Interface 2.1.0

I imagine this would require some gem juggling, maybe downgrading to rails 
4.0.8? I'd prefer to keep the newer rails version but maybe I will have to 
downgrade.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


Re: [Hobo Users] Re: Rendering a DRML file in a model

2014-07-07 Thread umuro
Unfortunately I got this:

*ERROR: undefined method `nested_cache' for 
#ActionView::Base:0x00073aa3e8*

The require work-around is making dryml available but not the taglibs 
themselves.  Is there a way to force loading taglibs also? Everything is 
fine at development. This problem is when I run the same code in Heroku.

On Monday, July 7, 2014 1:48:08 PM UTC+2, Ignacio Huerta wrote:

 Thanks for sharing the solution, that can be certainly useful :). 

 Warm regards, 
 Ignacio 

 El 07/07/14 12:26, umuro escribió: 
  The final working version has this 
  | 
  require'dryml/template_environment' 
  require'dryml/dryml_builder' 
  require'dryml/parser' 
  require'dryml/parser/document' 
  require'dryml/parser/source' 
  require'dryml/parser/elements' 
  require'dryml/parser/tree_parser' 
  require'dryml/parser/base_parser' 
  require'dryml/parser/element' 
  require'dryml/parser/attribute' 
  require'dryml/parser/text' 
  require'dryml/scoped_variables' 
  
  require'dryml' 
  require'dryml/railtie' 
  | 
  
  As far as I can see the only difference of production environment is 
  eager loading. 
  
  On Monday, July 7, 2014 11:34:00 AM UTC+2, umuro wrote: 
  
  Greate. It works on development as you tell me. 
  
  However, it did not work when I deployed to heroku. It was not 
  finding DRYML related classes. And I started exceptions one by one: 
  
  require 'dryml/template_environment' 
  require 'dryml/dryml_builder' 
  require 'dryml/parser' 
  require 'dryml/parser/document' 
  require 'dryml/parser/source' 
  require 'dryml/parser/elements' 
  require 'dryml/parser/tree_parser' 
  require 'dryml/parser/base_parser' 
  require 'dryml/parser/element' 
  require 'dryml/parser/attribute' 
  require 'dryml/parser/text' 
  
  ... 
  

  No this is not the right way! How can I require/load the dryml 
 parser? 
  
  On Thursday, July 3, 2014 9:32:05 PM UTC+2, umuro wrote: 
  
  For *ERB* you can do this:   
  | 
  
  
 template=ERB.newFile.new(app/views/oeb_stylesheets/show.css.erb).read,nil,%
  

  
  | 
  Is there a way to do it for *DRYML*? 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Hobo Users group. 
  To unsubscribe from this group and stop receiving emails from it, send 
  an email to hobousers+...@googlegroups.com javascript: 
  mailto:hobousers+...@googlegroups.com javascript:. 
  To post to this group, send email to hobo...@googlegroups.com 
 javascript: 
  mailto:hobo...@googlegroups.com javascript:. 
  Visit this group at http://groups.google.com/group/hobousers. 
  For more options, visit https://groups.google.com/d/optout. 


-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.


[Hobo Users] Heroku Puma Hobo

2014-07-07 Thread umuro
I am running Hobo using Puma on Heroku. Puma is multi-threaded and it 
really multiplies the serving power of the application.

To run Hobo multithreaded, I had to use eager loading for Hobo. Classes 
loading on requirement does not work un multi threaded environment. But it 
was easy. I simply added this bit to application.rb

config.threadsafe!
#UMUR: FIXED EAGER LOADING PROBLEM
if Rails.env.production? 
  %w{
dryml
hobo_fields
hobo
hobo_clean
hobo_clean_admin
hobo_bootstrap
hobo_fields
hobo_jquery
hobo_jquery_ui
hobo_rapid
hobo_support
geokit
  }.each do |gem_name|
spec = Gem::Specification.find_by_name(gem_name)
gem_root = spec.gem_dir
spec.require_paths.each do |p|
  space = gem_root + '/' + p
  config.eager_load_paths  space
end #do
  end #do
  
end #if

Hobo works beatufully. 

Everything is OK unless you are not compiling DRYML on Heroku.

DRYML classes are not eager loading. This was not a problem... Until I 
called the DRYML compiler directly to compile some templates from the 
models...
I managed to upload DRYML classes eventually but now the taglibs are not 
loading...

-- 
You received this message because you are subscribed to the Google Groups Hobo 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.