Mobile app using Hobo back-end

14 views
Skip to first unread message

Mike

unread,
Feb 21, 2012, 11:24:08 PM2/21/12
to Hobo Dev
Hi all,

I've posted a few thoughts on how to combine Hobo and Appcelerator to
create a quick mobile app here:
http://cookbook.hobocentral.net/recipes/1802-appcelerator-titanium-mobile-app-and-hobo

I was hoping to get some feedback...if anyone is interested.

It also has occurred to me that making mobile apps from Hobo would be
way easier if json was supported as a common response method in Hobo's
built-in features....like here:

def create_response(new_action, options={}, &b)
flash_notice
(ht( :"#{@this.class.to_s.underscore}.messages.create.success", :default=>["The
#{@this.class.model_name.human} was created successfully"])) if valid?

response_block(&b) or
if valid?
respond_to do |wants|
wants.html { redirect_after_submit(options) }
wants.js { hobo_ajax_response || render(:nothing =>
true) }
end
else
respond_to do |wants|
# errors is used by the translation helper, ht, below.
errors = this.errors.full_messages.join("\n")
wants.html { re_render_form(new_action) }
wants.js { render(:status => 500,
:text =>
ht( :"#{this.class.to_s.underscore}.messages.create.error", :errors=>errors,:default=>["Couldn't
create the #{this.class.name.titleize.downcase}.\n #{errors}"])
)}
end
end
end

In general just adding the right "wants.json" - is anyone interested
in pursuing with me?

Thanks,

Mike

owendall

unread,
Feb 22, 2012, 9:02:15 AM2/22/12
to hob...@googlegroups.com, Hobo Dev
Thanks, Mike. Have forwarded it...in the middle of writing a proposal...

Sent from my iPhone

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

Reply all
Reply to author
Forward
0 new messages