Ruby on Rails Sunday, October 31, 2010

He has a PHP script that do "the thing" with amazon, but now he needs
to tailor the Rails front-end app with that script through cURL. Right
Moritz?

You can execute cURL through Rails controllers like:

class SomeController < ...
def execute_my_php_script
`curl http://myscript.moritz.com [options]` # you need to know how
to run curl properly here
end
end

> - I have never worked with MVC before
> - I'm pretty good with PHP but I completely suck at RoR

http://guides.rubyonrails.org/

Cheers!
Jakub Godawa

On 31 Paź, 22:31, Hassan Schroeder <hassan.schroe...@gmail.com> wrote:
> On Sun, Oct 31, 2010 at 1:36 PM, Moritz Bruckner <li...@ruby-forum.com> wrote:
> > No, i've already built a PHP script which can be used to upload images
> > via HTTP POST. Now I'm trying to build some sort of graphical interface
> > with Rails. Thus, this GUI app would need to use cURL to transfer the
> > uploaded images to the API script.
>
> Sorry, I'm not following you at all.
>
> You have a Rails app on Heroku, and you want to store images for
> that app somewhere. So why not just use Paperclip? What's the point
> of a separate upload mechanism?
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment