Hey, Just hoping I can get some pointers as I am completely new to Rails and I have followed some tutorials to makes a database of data that I need, but now I am completely stuck with how to make the Rails page appear within my frameset. Hope that made some sense! Thanks! Bex -- Posted via http://www.ruby-forum.com/.
Have you managed to get your rails page to display when not in a frame? If so, you can just set the src property of your frame to the url that you used to access the page when it wasn''t in a frame. -Scott On 6/21/06, Becky Franklin <bex_3000@hotmail.com> wrote:> Hey, > > Just hoping I can get some pointers as I am completely new to Rails and > I have followed some tutorials to makes a database of data that I need, > but now I am completely stuck with how to make the Rails page appear > within my frameset. Hope that made some sense! > Thanks! > Bex > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Easily help charity when you shop: www.GiveTeam.org I''m a member of the Give Team, are you?
So far I have the rails page displaying in ''localhost'' how I want it to, but with all the project folders and files I''m a bit confused which bit to link into the frameset :S Thanks for the reply! Bex -- Posted via http://www.ruby-forum.com/.
Is your frameset part of your rails app, or is you rails app just stuck in one frame of a bigger page? If its the latter, just copy the localhost url your rails app is currently displaying on into the src property of the frame. If its the former you will need to create a new action in your controller and an rhtml file to contain the frameset. This action should be your index. Then you can link to other parts of the app in your frameset by setting the src properties of the frames to the parts of the app you want displayed there. You can use the url_for helper to do this. Ie: <frame src="<%=url_for(:controller=>''main'', :action=>''info'')%>"> -Scott On 6/21/06, Becky Franklin <bex_3000@hotmail.com> wrote:> So far I have the rails page displaying in ''localhost'' how I want it to, > but with all the project folders and files I''m a bit confused which bit > to link into the frameset :S > > Thanks for the reply! > Bex > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Easily help charity when you shop: www.GiveTeam.org I''m a member of the Give Team, are you?
I have a rails app and a website that I''ve coded seperately, and now I want the rails app to appear in the frameset as though it were just another html file. I''m just getting the document itself now, so the ruby isn''t being rendered in Firefox :S Bex -- Posted via http://www.ruby-forum.com/.
Becky Franklin wrote:> I have a rails app and a website that I''ve coded seperately, and now I > want the rails app to appear in the frameset as though it were just > another html file. I''m just getting the document itself now, so the ruby > isn''t being rendered in Firefox :S >It would be helpful to see what your frameset HTML looks like. The page requests for the Rails application will need to be able to run through your web server (that is what will ultimately pass off the parsing for Ruby). You can''t link to an .rhtml file, for instance, you have to link to a Rails URL pattern so that everything gets properly parsed. -Curtis