Hi, I''m new to ruby and rails and, after some inital success, I''ve hit a bit of a roadblock. I''m setting up a community-based site which will include a forum. I''m thinking of using PunBB for this but I dont understand just how I can get a php app running within my rails app. Like how can I get php code to run on the rails server??? Ideally, I''d like the user to be able to click the ''forum'' link and then for the punBB code to display within the page''s view. Can anybody tell me if this is possible? Any help would be appreciated, thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gearóid O''Ceallaigh wrote:> Hi, > > I''m new to ruby and rails and, after some inital success, I''ve hit a > bit of a roadblock. I''m setting up a community-based site which will > include a forum. I''m thinking of using PunBB for this but I dont > understand just how I can get a php app running within my rails app. > > Like how can I get php code to run on the rails server??? > > Ideally, I''d like the user to be able to click the ''forum'' link and > then for the punBB code to display within the page''s view. > > Can anybody tell me if this is possible? Any help would be > appreciated, thanks.well y u want to integrate punbb u can integrate caboo(beast) forum or eldorado or rforum which is built on rails..thats a better option..unless there is some specific reason y u want to use punbb Thanks Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
On 24 Jun 2008, at 12:13, Gearóid O''Ceallaigh wrote:> > Hi, > > I''m new to ruby and rails and, after some inital success, I''ve hit a > bit of a roadblock. I''m setting up a community-based site which will > include a forum. I''m thinking of using PunBB for this but I dont > understand just how I can get a php app running within my rails app. > > Like how can I get php code to run on the rails server??? >Well mongrel etc... won''t serve php for you, but it''s not hard with apache, nginx etc... to have one vhost pointing at your rails app and another at your php app. Fred> Ideally, I''d like the user to be able to click the ''forum'' link and > then for the punBB code to display within the page''s view. > > Can anybody tell me if this is possible? Any help would be > appreciated, thanks. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
On Jun 24, 12:58 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 24 Jun 2008, at 12:13, Gearóid O''Ceallaigh wrote: >> Well mongrel etc... won''t serve php for you, but it''s not hard with > apache, nginx etc... to have one vhost pointing at your rails app and > another at your php app. > > Fred >I was thinking this way myself. However can I call pages to be included on a page which are located on a seperate server? For example, imagine my rails app held stuff like venue information but then my forums was hosted on another server (or port when working locally). So could I use something like this: <!-- # START:yield --> <div id="content"> <%= yield :layout %> </div> <!-- # END:yield --> where yield calls my php boards? thanks for the help btw --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
On 24 Jun 2008, at 14:25, Gearóid O''Ceallaigh wrote:> > > > On Jun 24, 12:58 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On 24 Jun 2008, at 12:13, Gearóid O''Ceallaigh wrote: >> > >> Well mongrel etc... won''t serve php for you, but it''s not hard with >> apache, nginx etc... to have one vhost pointing at your rails app and >> another at your php app. >> >> Fred >> > > I was thinking this way myself. However can I call pages to be > included on a page which are located on a seperate server? For > example, imagine my rails app held stuff like venue information but > then my forums was hosted on another server (or port when working > locally). So could I use something like this: > > <!-- # START:yield --> > <div id="content"> > <%= yield :layout %> > </div> > <!-- # END:yield -->Not out of the box you can''t. I suppose you could manually invoke the php executable, but you might find you have to do quite a lot of fiddling around in order to setup the environment (all the stuff that apache would normally do for you). Fred> > > where yield calls my php boards? > > thanks for the help btw > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
> > <!-- # START:yield --> > > <div id="content"> > > <%= yield :layout %> > > </div> > > <!-- # END:yield --> >maybe you can use an iframe instead of the div then this could look something like <iframe src=''<%= path_to_wherever %>'' width="90%" height="400" name="PunBB" /> --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Crap. See, I''d have little issue with using Beast only I''m finding it particularly difficult to install. I''ve gone through all the usual steps suggested but get error 500 when trying to view it. Guess I''ll just give it another shot... On Jun 24, 2:32 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 24 Jun 2008, at 14:25, Gearóid O''Ceallaigh wrote: > > > > > > > On Jun 24, 12:58 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On 24 Jun 2008, at 12:13, Gearóid O''Ceallaigh wrote: > > >> Well mongrel etc... won''t serve php for you, but it''s not hard with > >> apache, nginx etc... to have one vhost pointing at your rails app and > >> another at your php app. > > >> Fred > > > I was thinking this way myself. However can I call pages to be > > included on a page which are located on a seperate server? For > > example, imagine my rails app held stuff like venue information but > > then my forums was hosted on another server (or port when working > > locally). So could I use something like this: > > > <!-- # START:yield --> > > <div id="content"> > > <%= yield :layout %> > > </div> > > <!-- # END:yield --> > > Not out of the box you can''t. I suppose you could manually invoke the > php executable, but you might find you have to do quite a lot of > fiddling around in order to setup the environment (all the stuff that > apache would normally do for you). > > Fred > > > > > where yield calls my php boards? > > > thanks for the help btw--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Check your log/development.log for any errors. -- Appreciated my help? Recommend me on Working With Rails http://workingwithrails.com/person/11030-ryan-bigg --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---