Rails application into HTML frames

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

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

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

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:

-Scott

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

Becky F. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs