[Rails] Re: executing external code

Manish Shah mnshah at gmail.com
Tue Aug 8 21:26:58 GMT 2006


Here is the routing error i'm getting:

ActionController::RoutingError (Recognition failed for "/myscript.php"):
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:521:in
`recognition_failed'
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:511:in
`recognize!'
    /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
`dispatch'


I'm trying to figure out how to route this request to myscript.php.  Is
the right place to do it in .htaccess or should something be done in
httpd.conf?

Eventually i'll port the php to ruby, but time is limited right now and
i just need to get something working.

Thanks.

Michael Siebert wrote:
> 2006/8/8, Manish Shah <mnshah at gmail.com>:
>>
>> I know its seems terrible to run php inside the rails app, but i'm not
>> sure what the best solution is here.  I'd greatly like some insight on
>> the best way to accomplish.
> 
> 
> why? i think its completely ok to do so. its ruby its rails. you CAN 
> port it
> to rails,, but if you dont want to, you CAN do it another way. i think 
> that
> sentence was in one of the railsconf keynotes... and i like it.
> 
> --
> Michael Siebert <info at siebert-wd.de>
> 
> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list