[Hobo Users] Admin subsite page tag error 1.4 pre

38 views
Skip to first unread message

Scorpio

unread,
Apr 17, 2012, 5:18:34 PM4/17/12
to Hobo Users
Hello,
I generated an app with an admin subsite, invite only, no email
confirmation with at least 1 controller public

The page tag works fine for front controller but in the adminsubsite I
get errors that are pretty much the same for all actions. Going to
admin/users generates the following errors (log and full stack trace
in pasties)

Log - http://pastie.org/private/mmj9yfq1om7sney4hebqdg
stack trace - http://pastie.org/private/gueteqemakku9yydu8apng

Bob Sleys

unread,
Apr 17, 2012, 7:15:40 PM4/17/12
to hobo...@googlegroups.com
I've run across similar issues with 1.4 and think I've nailed down.  If what I'm going to describe next doesn't help then I guess disregard it LOL.

The issue at least in my case came down to loading order.

First core.dryml is loaded from the gems directly - no problems here

Next application.dryml is loaded but it doesn't load the auto generated rapid tags by default. However it does load all dryml files in taglibs/application automatically.

Next the sub site dryml file is loaded, typically either front_site.dryml or admin.dryml.  This is where the auto generated rapid dryml files are loaded at by default.

The issue is if you try to extend any of the auto generated tags before they get loaded you'll get errors.  This is particularly confusing because much of the documentation states to place these tag extensions in application.dryml but with 1.4 the auto tags haven't been loaded yet leading to errors.

The simplest fix is move your tags out of application.dryml and place them either in front_site.dryml or admin.dryml.

It's also quite confusing that all dryml files in taglibs/application are auto loaded at the same point as application.dryml but the auto generated files aren't which by default will typically lead to errors.

IMHO the auto loading of taglibs/application should be discontinued OR when front_site.dryml loads all dryml files under taglibs/front_site should load AND all files in taglibs/admin_site should load when admin.dryml loads.  IE when a subsite loads it should load all dryml files in taglibs/<subsite>_site.

Of course this can be achieved by adding an <include ...> into each subsite.dryml file to mimic the auto loading.  (this is what I've done) I then place tags into dryml files named after the model they are for in the appropriate subsite_site dir so I can keep them organized. I really do hate haveing too much stuff in one file and this lets me keep my tags organized.

Bob

Scorpio

unread,
Apr 17, 2012, 7:33:19 PM4/17/12
to Hobo Users
The thing is I did not modify anything. The problem I'm having is with
the auto-generated content itself. Still that's valuable information.
I'm just not sure what I need to load exactly and where as I'm not by
far superb at hobo and dealing with advanced dryml issues is not
something I can handle very well but I'll try my best. I'm using hobo
to not have to deal with partials and reinventing the wheel every time
I write an app (auth, migrations, permissions, subsite, mailing etc).
In the mean time if you could elaborate on the load order that would
be great!

Thanks

Scorpio

unread,
Apr 17, 2012, 8:35:26 PM4/17/12
to Hobo Users
Sorry for the double post but I've partially managed to figure this
out thanks to the load issue info. I can workaround that error by
adding <include gem='hobo_clean'/> to either admin or application
dryml files. There is a catch tho.. that kills any styling on the
admin site whatsoever (at least I can continue working on
functionality before this gets resolved either by a temporary include
or commit). I've tried every include order permutation within those 3
dryml files I can think of to bring the styling back (at this point
any would do as reading plain text is annoying as hell, regardless if
I get main or admin theme). Sadly I just don't know enough about hobo
and dryml to make it work so I got either no change or some funky
merge of list items from the admin and main sites.

I could do it through math and try literally every combination
possible but with 3 files and over 10 lines of code even if I wrote
some auto meta-programming app it would take far too long

I hope that someone more knowledgeable will be able to tell me what
includes I need to copy and where to get it working for now.

On Apr 18, 1:15 am, Bob Sleys <bsl...@gmail.com> wrote:

Bryan Larsen

unread,
Apr 18, 2012, 7:38:47 AM4/18/12
to hobo...@googlegroups.com
I generated a new app using both pre4 and the current github master,
and neither had this problem.

It appears that your admin_site.dryml is missing the line:

<include gem='hobo_clean_admin'/>

Does your admin_site.dryml include this line? If not, we have to
figure out why not. If it does, we have to dig deeper.

BRyan

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

Scorpio

unread,
Apr 18, 2012, 9:03:05 AM4/18/12
to Hobo Users
I'm not currently on my work machine but I am 100% certain it does not
include that line... btw. I spent half the night trying to figure out
what is the name of the 'admin' gem. thanks. I can't verify atm but
I'm almost certain that will help. What was the last date that hobo
pre gem was updated ? I wonder if I need to reinstall.

On Apr 18, 1:38 pm, Bryan Larsen <br...@larsen.st> wrote:
> I generated a new app using both pre4 and the current github master,
> and neither had this problem.
>
> It appears that your admin_site.dryml is missing the line:
>
> <include gem='hobo_clean_admin'/>
>
> Does your admin_site.dryml include this line?   If not, we have to
> figure out why not.   If it does, we have to dig deeper.
>
> BRyan
>
>
>
>
>
>
>
> On Tue, Apr 17, 2012 at 5:18 PM, Scorpio <marek.micha...@gmail.com> wrote:
> > Hello,
> > I generated an app with an admin subsite, invite only, no email
> > confirmation with at least 1 controller public
>
> > The page tag works fine for front controller but in the adminsubsite I
> > get errors that are pretty much the same for all actions. Going to
> > admin/users generates the following errors (log and full stack trace
> > in pasties)
>
> > Log -http://pastie.org/private/mmj9yfq1om7sney4hebqdg
> > stack trace -http://pastie.org/private/gueteqemakku9yydu8apng

Bryan Larsen

unread,
Apr 18, 2012, 9:08:28 AM4/18/12
to hobo...@googlegroups.com
There's only been one gem released to rubygems.org: pre4 on Mar 28.
There are a few fixes for other problems on github master, but
nothing that affects your problem.

Bryan

Scorpio

unread,
Apr 18, 2012, 9:27:47 AM4/18/12
to Hobo Users
That's curious. Btw. How does the switch to jq affect all the recipes
for 1.3 that use js ? I'm assuming none of those should work, right?
I just went through the file history in Netbeans of the
admin_site.dryml and It never included that line.

When I do indclude that line I get the following error :

NameError in Admin/users#index

Showing /home/scorpio/Desktop/Sites/dev/app/views/admin/users/
index.dryml where line #1 raised:

uninitialized constant HoboCleanAdmin

Extracted source (around line #1):

1: <index-page without-new-form>
2: <after-count:>
3: <a with="&User" action="invite">
4: <t key="hobo.admin.invite_new_user">Invite a new user</t>

Rails.root: /home/scorpio/Desktop/Sites/dev
Application Trace | Framework Trace | Full Trace

activesupport (3.1.4) lib/active_support/inflector/methods.rb:124:in
`block in constantize'
activesupport (3.1.4) lib/active_support/inflector/methods.rb:123:in
`each'
activesupport (3.1.4) lib/active_support/inflector/methods.rb:123:in
`constantize'
activesupport (3.1.4) lib/active_support/core_ext/string/
inflections.rb:43:in `constantize'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:44:in `taglib_filenames'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:10:in `get'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:156:in `import_taglib'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:132:in `block in build'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:116:in `each'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:116:in `build'
dryml (1.4.0.pre4) lib/dryml/template.rb:73:in `compile'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:99:in `load'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:61:in `initialize'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:15:in `new'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:15:in `block in get'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:10:in `map'
dryml (1.4.0.pre4) lib/dryml/taglib.rb:10:in `get'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:156:in `import_taglib'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:114:in `block in build'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:114:in `each'
dryml (1.4.0.pre4) lib/dryml/dryml_builder.rb:114:in `build'
dryml (1.4.0.pre4) lib/dryml/template.rb:73:in `compile'
dryml (1.4.0.pre4) lib/dryml.rb:244:in `compile_renderer_class'
dryml (1.4.0.pre4) lib/dryml.rb:232:in `make_renderer_class'
dryml (1.4.0.pre4) lib/dryml.rb:101:in `page_renderer'
dryml (1.4.0.pre4) lib/dryml.rb:72:in `call_render'
app/views/admin/users/index.dryml:1:in
`_app_views_admin_users_index_dryml___786262590_79407000'
actionpack (3.1.4) lib/action_view/template.rb:144:in `block in
render'
activesupport (3.1.4) lib/active_support/notifications.rb:55:in
`instrument'
actionpack (3.1.4) lib/action_view/template.rb:142:in `render'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:40:in
`block (2 levels) in render_template'
actionpack (3.1.4) lib/action_view/renderer/abstract_renderer.rb:33:in
`block in instrument'
activesupport (3.1.4) lib/active_support/notifications.rb:53:in `block
in instrument'
activesupport (3.1.4) lib/active_support/notifications/instrumenter.rb:
21:in `instrument'
activesupport (3.1.4) lib/active_support/notifications.rb:53:in
`instrument'
actionpack (3.1.4) lib/action_view/renderer/abstract_renderer.rb:33:in
`instrument'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:39:in
`block in render_template'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:47:in
`render_with_layout'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:38:in
`render_template'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:12:in
`block in render'
actionpack (3.1.4) lib/action_view/renderer/abstract_renderer.rb:22:in
`wrap_formats'
actionpack (3.1.4) lib/action_view/renderer/template_renderer.rb:9:in
`render'
actionpack (3.1.4) lib/action_view/renderer/renderer.rb:36:in
`render_template'
actionpack (3.1.4) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.1.4) lib/abstract_controller/rendering.rb:120:in
`_render_template'
actionpack (3.1.4) lib/action_controller/metal/streaming.rb:250:in
`_render_template'
actionpack (3.1.4) lib/abstract_controller/rendering.rb:114:in
`render_to_body'
actionpack (3.1.4) lib/action_controller/metal/renderers.rb:30:in
`render_to_body'
actionpack (3.1.4) lib/action_controller/metal/compatibility.rb:43:in
`render_to_body'
actionpack (3.1.4) lib/abstract_controller/rendering.rb:99:in `render'
actionpack (3.1.4) lib/action_controller/metal/rendering.rb:16:in
`render'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
40:in `block (2 levels) in render'
activesupport (3.1.4) lib/active_support/core_ext/benchmark.rb:5:in
`block in ms'
/home/scorpio/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:
295:in `realtime'
activesupport (3.1.4) lib/active_support/core_ext/benchmark.rb:5:in
`ms'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
40:in `block in render'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
78:in `cleanup_view_runtime'
activerecord (3.1.4) lib/active_record/railties/controller_runtime.rb:
24:in `cleanup_view_runtime'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
39:in `render'
hobo (1.4.0.pre4) lib/hobo/controller/model.rb:839:in
`render_with_hobo_model'
actionpack (3.1.4) lib/action_controller/metal/implicit_render.rb:
10:in `default_render'
actionpack (3.1.4) lib/action_controller/metal/implicit_render.rb:5:in
`send_action'
actionpack (3.1.4) lib/abstract_controller/base.rb:167:in
`process_action'
actionpack (3.1.4) lib/action_controller/metal/rendering.rb:10:in
`process_action'
actionpack (3.1.4) lib/abstract_controller/callbacks.rb:18:in `block
in process_action'
activesupport (3.1.4) lib/active_support/callbacks.rb:452:in
`_run__40240962__process_action__163295093__callbacks'
activesupport (3.1.4) lib/active_support/callbacks.rb:386:in
`_run_process_action_callbacks'
activesupport (3.1.4) lib/active_support/callbacks.rb:81:in
`run_callbacks'
actionpack (3.1.4) lib/abstract_controller/callbacks.rb:17:in
`process_action'
actionpack (3.1.4) lib/action_controller/metal/rescue.rb:17:in
`process_action'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
30:in `block in process_action'
activesupport (3.1.4) lib/active_support/notifications.rb:53:in `block
in instrument'
activesupport (3.1.4) lib/active_support/notifications/instrumenter.rb:
21:in `instrument'
activesupport (3.1.4) lib/active_support/notifications.rb:53:in
`instrument'
actionpack (3.1.4) lib/action_controller/metal/instrumentation.rb:
29:in `process_action'
actionpack (3.1.4) lib/action_controller/metal/params_wrapper.rb:
201:in `process_action'
activerecord (3.1.4) lib/active_record/railties/controller_runtime.rb:
18:in `process_action'
actionpack (3.1.4) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.4) lib/abstract_controller/rendering.rb:45:in
`process'
actionpack (3.1.4) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.4) lib/action_controller/metal/rack_delegation.rb:
14:in `dispatch'
actionpack (3.1.4) lib/action_controller/metal.rb:236:in `block in
action'
actionpack (3.1.4) lib/action_dispatch/routing/route_set.rb:65:in
`call'
actionpack (3.1.4) lib/action_dispatch/routing/route_set.rb:65:in
`dispatch'
actionpack (3.1.4) lib/action_dispatch/routing/route_set.rb:29:in
`call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in
recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:82:in
`optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.4) lib/action_dispatch/routing/route_set.rb:532:in
`call'
actionpack (3.1.4) lib/action_dispatch/middleware/
best_standards_support.rb:17:in `call'
rack (1.3.6) lib/rack/etag.rb:23:in `call'
rack (1.3.6) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/params_parser.rb:
21:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/flash.rb:247:in
`call'
rack (1.3.6) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.6) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/cookies.rb:331:in
`call'
activerecord (3.1.4) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.1.4) lib/active_record/connection_adapters/abstract/
connection_pool.rb:477:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in
`block in call'
activesupport (3.1.4) lib/active_support/callbacks.rb:392:in
`_run_call_callbacks'
activesupport (3.1.4) lib/active_support/callbacks.rb:81:in
`run_callbacks'
actionpack (3.1.4) lib/action_dispatch/middleware/callbacks.rb:28:in
`call'
rails-dev-tweaks (0.6.1) lib/rails_dev_tweaks/granular_autoload/
middleware.rb:34:in `call'
rack (1.3.6) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/remote_ip.rb:48:in
`call'
actionpack (3.1.4) lib/action_dispatch/middleware/show_exceptions.rb:
47:in `call'
railties (3.1.4) lib/rails/rack/logger.rb:13:in `call'
config/initializers/quiet_assets.rb:6:in `call_with_quiet_assets'
rack (1.3.6) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.6) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.4) lib/active_support/cache/strategy/local_cache.rb:
72:in `call'
rack (1.3.6) lib/rack/lock.rb:15:in `call'
actionpack (3.1.4) lib/action_dispatch/middleware/static.rb:61:in
`call'
railties (3.1.4) lib/rails/engine.rb:456:in `call'
railties (3.1.4) lib/rails/application.rb:143:in `call'
rack (1.3.6) lib/rack/content_length.rb:14:in `call'
railties (3.1.4) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.6) lib/rack/handler/webrick.rb:59:in `service'
/home/scorpio/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/
httpserver.rb:138:in `service'
/home/scorpio/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/
httpserver.rb:94:in `run'
/home/scorpio/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/
server.rb:191:in `block in start_thread'

Request

Parameters:

None

Show session dump

Show env dump
Response

Headers:

None

Bryan Larsen

unread,
Apr 18, 2012, 9:41:48 AM4/18/12
to hobo...@googlegroups.com
OK, I think I know what you did. I bet you generated an app without
an admin subsite, and then used a generator to add it later. Sure
enough, that's broken.

You can try and fix your current problem by running

rails g hobo:install_plugin hobo_clean_admin -v 1.4.0.pre4
--subsite=admin --css-top

Or, approach it more systematically:

1) generate a new hobo app without an admin site
2) generate a new hobo app with an admin site
3) apply the diff of 1&2 to your app.

Or, wait until I fix the problem which I will hopefully get to within
the next day or two.

Bryan

Scorpio

unread,
Apr 18, 2012, 9:45:19 AM4/18/12
to Hobo Users
No I did not add the subsite. as I said I used the generator (invite
only, no confirmation, en, mysql, at least 1 controller public,
default names of resources and seperate front for the admin site.)
> ...
>
> read more »

Bryan Larsen

unread,
Apr 18, 2012, 9:52:42 AM4/18/12
to hobo...@googlegroups.com
Neither pre4 nor pre5 have a "seperate front for the admin site"
option. If you used a version of the generator that does, I'm much
less surprised that you ran into troubles. The three options I
listed below should still help fix your current problem.

It appears I missed a question on your original email:

>> > Btw. How does the switch to jq affect all the recipes
>> > for 1.3 that use js ? I'm assuming none of those should work, right?

That's correct. There may be a few exceptions, but the vast majority
won't work. Some may work if you add prototype.js to your app, but
it's probably better to convert them to jquery. Even many of the
hobo-jquery 1.3 recipes will broken because it has changed
substantially in 1.4.

Bryan

Scorpio

unread,
Apr 18, 2012, 10:00:27 AM4/18/12
to Hobo Users
Ok. I'll purge RVM /reinstall gems, regenerate and post back if that
helped.
Too bad about the recipes. There were some very nice ones in there.

Bryan Larsen

unread,
Apr 18, 2012, 10:03:07 AM4/18/12
to hobo...@googlegroups.com
On Wed, Apr 18, 2012 at 10:00 AM, Scorpio <marek.m...@gmail.com> wrote:
> Ok. I'll purge RVM /reinstall gems, regenerate and post back if that
> helped.

That's pretty drastic. Try this first:

rails g hobo:install_plugin hobo_clean_admin -v 1.4.0.pre4
--subsite=admin --css-top

> Too bad about the recipes. There were some very nice ones in there.

It should be only minor tweaks to fix most of them.

Bryan

Scorpio

unread,
Apr 18, 2012, 10:10:43 AM4/18/12
to Hobo Users
I'll regenerate as I kinda upgraded from .0 to .4 Rails mid
development and I can see now something got screwed really badly. Give
me a few moments

On Apr 18, 4:03 pm, Bryan Larsen <br...@larsen.st> wrote:

Scorpio

unread,
Apr 18, 2012, 10:24:06 AM4/18/12
to Hobo Users
Reinstall did not help. Exactly same error as before.

The plugin installation command helped tho.

My terminal has too few lines scroll to show you exactly the options I
picked but I can generate a new app and set the rollback to 10k if
that would help you guys with this error as the exact same error was
present fresh after the generator on a clean gem install.

Bryan Larsen

unread,
Apr 18, 2012, 10:29:35 AM4/18/12
to hobo...@googlegroups.com
That would be useful as I am having trouble recreating the problem here.

Bryan

Scorpio

unread,
Apr 18, 2012, 10:41:16 AM4/18/12
to Hobo Users
You asked for it... Wall of text incoming ... (I'll refrain from using
external services because who knows.Maybe someone will be reading this
2 years from now and my pastie would be expired and that would be sad)

scorpio@scorpio-vb:~/Desktop/Sites$ rvm gemset empty
Are you SURE you wish to remove the installed gems for gemset
'ruby-1.9.3-p125' (/home/scorpio/.rvm/gems/ruby-1.9.3-p125)?
(anything other than 'yes' will cancel) > yes
scorpio@scorpio-vb:~/Desktop/Sites$ gem install -v 3.1.4 rails --no-ri
--no-rdoc
********************************************************************************

MultiJson.encode is deprecated and will be removed in the next major
version.
Use MultiJson.dump instead.

MultiJson.decode is deprecated and will be removed in the next major
version.
Use MultiJson.load instead.

MultiJson.engine is deprecated and will be removed in the next major
version.
Use MultiJson.adapter instead.

MultiJson.engine= is deprecated and will be removed in the next
major
version. Use MultiJson.use instead.

MultiJson.default_engine is deprecated and will be removed in the
next major
version. Use MultiJson.default_adapter instead.

********************************************************************************
Building native extensions. This could take a while...
Depending on your version of ruby, you may need to install ruby rdoc/
ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed multi_json-1.3.2
Successfully installed activesupport-3.1.4
Successfully installed builder-3.0.0
Successfully installed i18n-0.6.0
Successfully installed activemodel-3.1.4
Successfully installed rack-1.3.6
Successfully installed rack-cache-1.2
Successfully installed rack-test-0.6.1
Successfully installed rack-mount-0.8.3
Successfully installed hike-1.2.1
Successfully installed tilt-1.3.3
Successfully installed sprockets-2.0.3
Successfully installed erubis-2.7.0
Successfully installed actionpack-3.1.4
Successfully installed arel-2.2.3
Successfully installed tzinfo-0.3.33
Successfully installed activerecord-3.1.4
Successfully installed activeresource-3.1.4
Successfully installed mime-types-1.18
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.10
Successfully installed mail-2.3.3
Successfully installed actionmailer-3.1.4
Successfully installed thor-0.14.6
Successfully installed rack-ssl-1.3.2
Successfully installed json-1.6.6
Successfully installed rdoc-3.12
Successfully installed railties-3.1.4
Successfully installed rails-3.1.4
29 gems installed
scorpio@scorpio-vb:~/Desktop/Sites$ gem install hobo --pre
Building native extensions. This could take a while...
Successfully installed hobo_support-1.4.0.pre4
Successfully installed hobo_fields-1.4.0.pre4
Successfully installed dryml-1.4.0.pre4
Successfully installed will_paginate-3.0.3
Successfully installed hobo-1.4.0.pre4
5 gems installed
Installing ri documentation for hobo_support-1.4.0.pre4...
Installing ri documentation for hobo_fields-1.4.0.pre4...
Installing ri documentation for dryml-1.4.0.pre4...
Installing ri documentation for will_paginate-3.0.3...
Installing ri documentation for hobo-1.4.0.pre4...
Installing RDoc documentation for hobo_support-1.4.0.pre4...
Installing RDoc documentation for hobo_fields-1.4.0.pre4...
Installing RDoc documentation for dryml-1.4.0.pre4...
Installing RDoc documentation for will_paginate-3.0.3...
Installing RDoc documentation for hobo-1.4.0.pre4...
scorpio@scorpio-vb:~/Desktop/Sites$ hobo new blabla -d mysql
Hobo Command Line Interface 1.4.0.pre4
Generating Rails infrastructure...
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply /tmp/hobo_app_template
gemfile hobo (= 1.4.0.pre4)

Hobo Setup Wizard
Do you want to start the Setup Wizard now?
(Choose 'n' if you need to manually customize any file before running
the Wizard.
You can run it later with `hobo g setup_wizard` from the application
root dir.) [y|n] y
=> "y"
run bundle install from "."
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using multi_json (1.3.2)
Using activesupport (3.1.4)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.4)
Using erubis (2.7.0)
Using rack (1.3.6)
Using rack-cache (1.2)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.4)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.3)
Using actionmailer (3.1.4)
Using arel (2.2.3)
Using tzinfo (0.3.33)
Using activerecord (3.1.4)
Using activeresource (3.1.4)
Installing ansi (1.4.2)
Using bundler (1.1.3)
Installing coffee-script-source (1.3.1)
Installing execjs (1.3.0)
Installing coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.6)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.1.4)
Installing coffee-rails (3.1.1)
Using rails (3.1.4)
Using hobo_support (1.4.0.pre4)
Using dryml (1.4.0.pre4)
Using hobo_fields (1.4.0.pre4)
Using will_paginate (3.0.3)
Using hobo (1.4.0.pre4)
Installing jquery-rails (1.0.19)
Installing mysql2 (0.3.11) with native extensions
Installing sass (3.1.15)
Installing sass-rails (3.1.6)
Installing turn (0.8.3)
Installing uglifier (1.2.4)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.

Startup
Installing Hobo assets...
create app/views/taglibs/application.dryml
create app/views/taglibs/front_site.dryml
create config/initializers/dryml_taglibs.rb
create app/models/guest.rb
create app/assets/stylesheets/application.css
create app/assets/stylesheets/application/.gitkeep
create app/assets/stylesheets/front.css
create app/assets/stylesheets/front/.gitkeep
create app/assets/javascripts/application.js
create app/assets/javascripts/application/.gitkeep
create app/assets/javascripts/front.js
create app/assets/javascripts/front/.gitkeep

Test Framework
Do you want to customize the test_framework? [y|n] n
=> "n"

User Resource
Choose a name for the user resource: [<enter>=user|<custom_name>]
=> "user"
Do you want to send an activation email to activate the user? [y|n] n
=> "n"

Invite Only Option
Do you want to add the features for an invite only website? [y|n] y
=> "y"
Do you want to prevent all access to the site to non-members?
(Choose 'y' only if ALL your site will be private, choose 'n' if at
least one controller will be public) [y|n] n
=> "n"
If you wish to prevent all access to some controller to non-members,
add 'before_filter :login_required'
to the relevant controllers:

include Hobo::Controller::AuthenticationSupport
before_filter :login_required

(note that the include statement is not required for hobo_controllers)

NOTE: You might want to sign up as the administrator before adding
this!


Templates Option
Will your application use only hobo/dryml web page templates?
(Choose 'n' only if you also plan to use plain rails/erb web page
templates) [y|n] n
=> "n"

Front Controller
Choose a name for the front controller: [<enter>=front|<custom_name>]
=> "front"
Installing front controller...
create app/controllers/front_controller.rb
create app/helpers/front_helper.rb
invoke test_unit
create test/unit/helpers/front_helper_test.rb
invoke test_unit
create test/functional/front_controller_test.rb
create app/views/front/index.dryml
remove public/index.html
route match 'search' => 'front#search', :as => 'site_search'
route root :to => 'front#index'

Admin Subsite
Choose a name for the admin subsite: [<enter>=admin|<custom_name>]
=> "admin"
Installing 'user' resources...
create app/models/user.rb
invoke test_unit
create test/unit/user_test.rb
create test/fixtures/users.yml
insert app/models/user.rb
create app/mailers/user_mailer.rb
create app/views/user_mailer/forgot_password.erb
create app/views/user_mailer/invite.erb
invoke test_unit
create test/functional/user_mailer_test.rb
create app/controllers/users_controller.rb
invoke test_unit
create app/views/users/accept_invitation.dryml
Installing admin subsite...
create app/controllers/admin/users_controller.rb
invoke test_unit
create app/views/admin/users/index.dryml
create app/views/taglibs/admin_site.dryml
create app/assets/stylesheets/admin.css
create app/assets/stylesheets/admin/.gitkeep
create app/assets/javascripts/admin.js
create app/assets/javascripts/admin/.gitkeep
create app/controllers/admin/admin_site_controller.rb
invoke test_unit
Installing hobo_rapid plugin...
gemfile hobo_rapid (1.4.0.pre4)
insert app/assets/javascripts/application.js
insert app/assets/stylesheets/application.css
insert app/views/taglibs/application.dryml
Installing hobo_jquery plugin...
gemfile hobo_jquery (1.4.0.pre4)
insert app/assets/javascripts/application.js
insert app/assets/stylesheets/application.css
insert app/views/taglibs/application.dryml
Installing hobo_jquery_ui plugin...
gemfile hobo_jquery_ui (1.4.0.pre4)
insert app/assets/javascripts/application.js
insert app/assets/stylesheets/application.css
insert app/views/taglibs/application.dryml
Installing hobo_clean theme...
insert app/assets/stylesheets/front.css
gemfile hobo_clean (1.4.0.pre4)
insert app/assets/javascripts/front.js
insert app/assets/stylesheets/front.css
insert app/views/taglibs/front_site.dryml
gemfile jquery-ui-themes (~> 0.0.4)
run bundle install from "."
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using multi_json (1.3.2)
Using activesupport (3.1.4)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.4)
Using erubis (2.7.0)
Using rack (1.3.6)
Using rack-cache (1.2)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.4)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.3)
Using actionmailer (3.1.4)
Using arel (2.2.3)
Using tzinfo (0.3.33)
Using activerecord (3.1.4)
Using activeresource (3.1.4)
Using ansi (1.4.2)
Using bundler (1.1.3)
Using coffee-script-source (1.3.1)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.6)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.1.4)
Using coffee-rails (3.1.1)
Using rails (3.1.4)
Using hobo_support (1.4.0.pre4)
Using dryml (1.4.0.pre4)
Using hobo_fields (1.4.0.pre4)
Using will_paginate (3.0.3)
Using hobo (1.4.0.pre4)
Installing hobo_clean (1.4.0.pre4)
Using jquery-rails (1.0.19)
Installing hobo_jquery (1.4.0.pre4)
Installing multi_xml (0.4.4)
Installing httparty (0.8.2)
Installing jquery-ui-themes (0.0.5)
Installing hobo_jquery_ui (1.4.0.pre4)
Installing hobo_rapid (1.4.0.pre4)
Using mysql2 (0.3.11)
Using sass (3.1.15)
Using sass-rails (3.1.6)
Using turn (0.8.3)
Using uglifier (1.2.4)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
Post-install message from httparty:
When you HTTParty, you must party hard!
Adding rails-dev-tweaks gem
gemfile rails-dev-tweaks (~> 0.6.1)
run bundle install from "."
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using multi_json (1.3.2)
Using activesupport (3.1.4)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.4)
Using erubis (2.7.0)
Using rack (1.3.6)
Using rack-cache (1.2)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.4)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.3)
Using actionmailer (3.1.4)
Using arel (2.2.3)
Using tzinfo (0.3.33)
Using activerecord (3.1.4)
Using activeresource (3.1.4)
Using ansi (1.4.2)
Using bundler (1.1.3)
Using coffee-script-source (1.3.1)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.6)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.1.4)
Using coffee-rails (3.1.1)
Using rails (3.1.4)
Using hobo_support (1.4.0.pre4)
Using dryml (1.4.0.pre4)
Using hobo_fields (1.4.0.pre4)
Using will_paginate (3.0.3)
Using hobo (1.4.0.pre4)
Using hobo_clean (1.4.0.pre4)
Using jquery-rails (1.0.19)
Using hobo_jquery (1.4.0.pre4)
Using multi_xml (0.4.4)
Using httparty (0.8.2)
Using jquery-ui-themes (0.0.5)
Using hobo_jquery_ui (1.4.0.pre4)
Using hobo_rapid (1.4.0.pre4)
Using mysql2 (0.3.11)
Installing rails-dev-tweaks (0.6.1)
Using sass (3.1.15)
Using sass-rails (3.1.6)
Using turn (0.8.3)
Using uglifier (1.2.4)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
insert config/environments/development.rb

DB Migration
Initial Migration: [s]kip, [g]enerate migration file only, generate
and [m]igrate: [s|g|m] m
=> "m"
Migrating...
rake db:setup
/home/scorpio/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/
active_support/dependencies.rb:240:in `block in require': iconv will
be deprecated in the future, use String#encode instead.
/home/scorpio/Desktop/Sites/blabla/db/schema.rb doesn't exist yet. Run
"rake db:migrate" to create it then try again. If you do not intend to
use a database, you should instead alter /home/scorpio/Desktop/Sites/
blabla/config/application.rb to limit the frameworks that will be
loaded

---------- Up Migration ----------
create_table :users do |t|
t.string :crypted_password, :limit => 40
t.string :salt, :limit => 40
t.string :remember_token
t.datetime :remember_token_expires_at
t.string :name
t.string :email_address
t.boolean :administrator, :default => false
t.datetime :created_at
t.datetime :updated_at
t.string :state, :default => "invited"
t.datetime :key_timestamp
end
add_index :users, [:state]
----------------------------------

---------- Down Migration --------
drop_table :users
----------------------------------
create db/migrate/20120418143744_initial_migration.rb
rake db:migrate
/home/scorpio/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/
active_support/dependencies.rb:240:in `block in require': iconv will
be deprecated in the future, use String#encode instead.
== InitialMigration: migrating
===============================================
-- create_table(:users)
-> 0.0366s
-- add_index(:users, [:state])
-> 0.0278s
== InitialMigration: migrated (0.0647s)
======================================


I18n
The Hobo supported locales are ru fr en it de nb es pt-PT (please,
contribute to more translations)
Type the locales (space separated) you want to add to your application
or <enter> for 'en':
=> "en"
create config/locales/hobo.en.yml
create config/locales/app.en.yml
remove config/locales/en.yml

Git Repository
Do you want to initialize a git repository now? [y|n] n
=> "n"

Process completed!
You can start your application with `rails server`
(run with --help for options). Then point your browser to
http://localhost:3000/

Follow the guidelines to start developing your application.
You can find the following resources handy:

* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
scorpio@scorpio-vb:~/Desktop/Sites$

Bryan Larsen

unread,
Apr 18, 2012, 10:56:37 AM4/18/12
to hobo...@googlegroups.com
OK, thanks for the wall-o-text. It appears that the difference was
that you generated an invite-only app, which does appear to be broken
in the manner you described.

Bryan

Scorpio

unread,
Apr 19, 2012, 7:57:51 AM4/19/12
to Hobo Users
I assume you guys are gonna fix this for the final build. You
mentioned something about pre 5. Will it get pushed to rubygems as
well ?

Bryan Larsen

unread,
Apr 19, 2012, 9:23:26 AM4/19/12
to hobo...@googlegroups.com
Yup, it's been added to the TODO list. My plan is to release pre5
after I've made the application.dryml changes also discussed
yesterday. Since that affects the generators, I'll probably handle
this bug at the same time. However, I have a few "real work" type
items that are higher priority, so it might be a couple of days before
I get to those 2 issues.

Bryan

Reply all
Reply to author
Forward
0 new messages