RR3WHobo BETA-5: 2011-05-03 Error: Page 143 "config.hobo.app_name key is found in the config/application.rb file"

32 views
Skip to first unread message

Michael Q

unread,
Oct 28, 2011, 7:22:25 AM10/28/11
to hobo...@googlegroups.com
I can't find a config.hobo.app_name key in the config/application.rb file.
In fact I can't where the app name is defined. I've tried a search of the whole project for my app name string and can't find it's master (DRY )definition, only derivative references.

Can anyone please explain where the app name is defined?

Thanks

M

Bob Sleys

unread,
Oct 28, 2011, 9:23:00 AM10/28/11
to hobo...@googlegroups.com
I'm not 100% sure how Hobo determines the app name by default, perhaps its based on the directory name the app is in.  However to set the app name to whatever you want just add it to to the application.rb in the config dir.

config.hobo.app_name = "Your costume app name"

Note you'll need to restart the app server to get it to actually show up in the app.

Bob

Owen Dall

unread,
Oct 28, 2011, 9:25:34 AM10/28/11
to hobo...@googlegroups.com
See the page 146 in "Rapid Rails 3 with Hobo":

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/Stxk2z0-3RAJ.

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.



--
Owen Dall, Chief Systems Architect
Barquin International

Owen Dall

unread,
Oct 28, 2011, 9:31:03 AM10/28/11
to hobo...@googlegroups.com
http://screencast.com/t/5coKEhWmQEI

As Bob said, you must restart the app for it to apply...

-Owen

Michael Q

unread,
Oct 28, 2011, 12:58:43 PM10/28/11
to hobo...@googlegroups.com
Thanks Bob & Owen,

I just wanted to point out that the text is a bit misleading because the config.hobo.app_name key is not already in that file by default. This caused me some confusion because I was looking for a key which it is suggested is generated by Hobo and should already be there. Perhaps the wording should be changed from:

"config.hobo.app_name key is found in the config/application.rb file"

to something like

"a config.hobo.app_name key may be added to config/application.rb file to change the app name"

M

Owen

unread,
Oct 28, 2011, 1:08:06 PM10/28/11
to Hobo Users
You are right--will change that to be less confusing!

Matt Jones

unread,
Oct 28, 2011, 2:20:37 PM10/28/11
to hobo...@googlegroups.com

In keeping with other typical Rails practices, it would make sense to add an example line in, but commented out - for example, like this bit from production.rb:

# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = "X-Sendfile"

# For nginx:
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

# If you have no front-end server that supports something like X-Sendfile,
# just comment this out and Rails will serve the files


--Matt Jones

Reply all
Reply to author
Forward
0 new messages