paperclip_with_hobo Hobo 1.4

55 views
Skip to first unread message

kevinpfromnm

unread,
Sep 21, 2012, 12:46:12 PM9/21/12
to hobo...@googlegroups.com
Is there still a need for the paperclip_with_hobo plugin on 1.4?  Saw no mention of it in the docs.

Bryan Larsen

unread,
Sep 21, 2012, 1:05:51 PM9/21/12
to hobo...@googlegroups.com
The plugin still works, although it prints a big nasty warning saying
that Rails 2.3 style plugins will break in Rails 4.0. The biggest
reason to convert it would be to get it onto the cookbook. It's on
the todo list to convert it to the Hobo 2.0 gem format before final
release of HObo 2.0. Should be trivial, if you want to take a crack
at it. Docs are here:
http://cookbook-1.4.hobocentral.net/manual/plugins

Bryan


On Fri, Sep 21, 2012 at 12:46 PM, kevinpfromnm <kevinp...@gmail.com> wrote:
> Is there still a need for the paperclip_with_hobo plugin on 1.4? Saw no
> mention of it in the docs.
>
> --
> 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/-/PzsCi-rlL8QJ.
> 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.

Bob Sleys

unread,
Oct 7, 2012, 12:18:18 PM10/7/12
to hobo...@googlegroups.com
I just did a quick gem for this.  It can be found at https://github.com/bsleys/hobo_paperclip it appears to be working for me.  Let me know if you see anything that need to be fixed/changed.

Bob

Ignacio Huerta

unread,
Oct 8, 2012, 11:29:19 AM10/8/12
to hobo...@googlegroups.com, Bob Sleys
Hi,

I just tested the gem and it works perfectly. Thank you very much Bob!

I just have two suggestions:
- Being this such an important Hobo gem, it might a good idea to move
it to the Hobo organisation in Github. If Bob likes the idea, of course.

- Is the rails dependency necessary? I had to update my test app from
Rails 3.2.6 to Rails 3.2.8. It's not really an issue, but maybe we
could jump over that, as depending on Hobo should be enough.

Regards,
Ignacio

El 07/10/12 18:18, Bob Sleys escribi�:
> <https://groups.google.com/d/msg/hobousers/-/PzsCi-rlL8QJ>.
>> To post to this group, send email to hobo...@googlegroups.com
> <javascript:>.
>> To unsubscribe from this group, send email to
>> hobousers+...@googlegroups.com <javascript:>. For more options,
> <http://groups.google.com/group/hobousers?hl=en>.
>
> -- 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/-/f6VHWNUNkXcJ. 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.

--
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre

Bob Sleys

unread,
Oct 8, 2012, 1:32:38 PM10/8/12
to hobo...@googlegroups.com, Bob Sleys
You are probably right on the rails part I just left whatever the plugin generator added on that I can remove the requirement easy enough. In fact now that I think about it I have the hobo dependency set to 

  s.add_runtime_dependency('hobo', ['~> 2.0.0.pre3'])

Perhaps it should just be hobo with no specific version number.  I don't see why it wouldn't work with older versions of hobo.  Let me know what you think.

If someone wants to move it into hobo and make it more offical that would be fine by me.  I just did it to clean up the app I'm working on.

Bob


On Monday, October 8, 2012 11:29:24 AM UTC-4, Ignacio Huerta wrote:
Hi,

I just tested the gem and it works perfectly. Thank you very much Bob!

I just have two suggestions:
- Being this such an important Hobo gem, it might a good idea to move
it to the Hobo organisation in Github. If Bob likes the idea, of course.

- Is the rails dependency necessary? I had to update my test app from
Rails 3.2.6 to Rails 3.2.8. It's not really an issue, but maybe we
could jump over that, as depending on Hobo should be enough.

Regards,
Ignacio

El 07/10/12 18:18, Bob Sleys escribi�:
Tel�fono: 0034 645 70 77 35

Owen Dall

unread,
Oct 8, 2012, 1:34:23 PM10/8/12
to hobo...@googlegroups.com, Bob Sleys
Thanks for that, Bob.

To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/rTHj89jZW5sJ.

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

Vice President | Chief Technology Officer

Barquin International 

www.barquin.com

Office: 202.296.7147 | Mobile: tel:410.991.0811

Fax: 202.296.8903 | email: od...@barquin.com


Bob Sleys

unread,
Oct 8, 2012, 1:43:48 PM10/8/12
to hobo...@googlegroups.com, Bob Sleys
pushed up a version removing the rails dependency and I also removed the version number from Hobo and Paperclip so you are free to try it with any versions you wish.

Bob

Bryan Larsen

unread,
Oct 8, 2012, 2:47:35 PM10/8/12
to hobo...@googlegroups.com, Bob Sleys
On Mon, Oct 8, 2012 at 1:32 PM, Bob Sleys <bsl...@gmail.com> wrote:
> You are probably right on the rails part I just left whatever the plugin
> generator

Yes, the hobo plugin generator starts with the rails plugin generator.
I could make it remove the rails dependency, but removal is much
less robust than addition, so I'd rather not.

> added on that I can remove the requirement easy enough. In fact
> now that I think about it I have the hobo dependency set to
>
> s.add_runtime_dependency('hobo', ['~> 2.0.0.pre3'])
>
> Perhaps it should just be hobo with no specific version number. I don't see
> why it wouldn't work with older versions of hobo. Let me know what you
> think.

That's not a bad way to do it. But you definitely should drop a
level from the version so that it will still work with an eventual
2.0.1. Does ~> 2.0 or ~> 2.0.0 work?

>
> If someone wants to move it into hobo and make it more offical that would be
> fine by me. I just did it to clean up the app I'm working on.

I've added you to the hobo contributors group. Let me know if that's
sufficient permission to move it into Hobo. I could fork it into
Hobo, but you're the only one that can move it there. Given how new
your repository is, I think that is preferable.

Bryan

Bob Sleys

unread,
Oct 8, 2012, 3:06:08 PM10/8/12
to hobo...@googlegroups.com, Bob Sleys
Thanks Bryan,

I tired to create a new repro with an owner of Hobo and I don't have permissions to do that.  I then went to my hobo_paperclip repo and tried to transfer ownership to Hobo but told I don't have admin rights to Hobo. Perhaps I don't understand how to move it over. 

Bob


On Friday, September 21, 2012 12:46:12 PM UTC-4, kevinpfromnm wrote:
Is there still a need for the paperclip_with_hobo plugin on 1.4?  Saw no mention of it in the docs.

paulj...@gmail.com

unread,
Nov 5, 2012, 1:25:34 AM11/5/12
to hobo...@googlegroups.com
I have installed the new hobo_paperclip with my 2.0pre5 app, and the filename field is not appearing.

I am moving the code over from a running 1.3 app.

My model is here:


application.dryml has the include and extend form tags:


Yet when I render the transaction_sets/new page, there's no filename field to be found:


Any thoughts?

Bryan Larsen

unread,
Nov 5, 2012, 9:04:12 AM11/5/12
to hobo...@googlegroups.com
You don't have transaction_file in your attr_accessible. I think
that's all that's necessary, but you may also need to add
transaction_file_file_name, transaction_file_file_size,
transaction_file_content_type and/or transaction_file_updated_at.

Bryan
> --
> 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/-/TESmDqReNs0J.

paulj...@gmail.com

unread,
Nov 5, 2012, 6:40:00 PM11/5/12
to hobo...@googlegroups.com
Thanks a lot attr_accessible did it.
Reply all
Reply to author
Forward
0 new messages