similar to: One layout for entire App ?

Displaying 20 results from an estimated 10000 matches similar to: "One layout for entire App ?"

2006 Jul 18
5
Installing ROR/Webrick app on Windows 2000/2003 Server
Hi all, I am currently not able to use search since it is disabled, so I will ask my question and hope I am not repeating a past question. I am looking into developing an app to run in Windows 2000/2003 Server environment. To install ROR on a server to run an app on Webrick do I need any extra steps beyond those needed to install on my development laptop (XP prof) ? The idea is to run the
2006 Mar 02
2
custom sql queries beyond CRUD
Hi, I am just starting of in rails. I am trying to understand the features of rails and I have this burning question. (and search is not available now): Apart from relying on the automatic CRUD sql script produced, is there a way I can create my own sql script ex: with many joins between exixting tables (for reporting ). All I need is to declare the custom query and place the result in a
2006 Jul 23
3
Where else can I access this ROR List ?
Hi, because search is not working, I would like to access this list through some other means so that i can search past questions and feedback. Can someone give me the links or infomartion needed to subscribe. I especially need the ability to do searches TIA, Tuka -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
2
ROR dev on Different Ruby versions
Hi, First I would like to ask if someone could give me the direct link to the mailing list this forum mirrors. This is so I can do searches directly and not bother folks with repeat questions. Now my question: I recently installed a ROR app built on Ruby 1.8.2 and moved it to ROR on Ruby 1.8.4. I got a few errors and had to regenerate my app in the later and copy the App files and a few
2006 Apr 25
3
command rake migration also runs #down method ?
Hi, i am new to rails and trying to understand the migrate feature of rake whenever I call "rake migrate", i understand it call all the latest version of a given of given migrate files. Now when these files are executed, id the #down method called and then the #up ? or must i explicitly call the #down method from rake. If yes how do i do that from rake ? I experimented with rake
2006 May 04
1
Ways to share code among the ''layout''
Is there a way to use the same code accross multiple layouts. Normally, I am associating a layout with a particular controller? Is there a cleaner way. -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com http://www.newspiritcompany.com/newforums also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
2006 Mar 09
4
Stop users accessing methods.
Hello all. Is there a way to stop users from being able to access a controllers methods without affecting the ability of other controllers to use them? i.e FooController def secret #Stuff end end BarController def index redirect_to :controller => ''foo'', action => ''secret'', :id => ''007'' end end But directly
2003 Jul 18
2
pf
ei tuka imam edin pf conf obache pravi mnogo nomera, kato se pusne parvoto koeto e dropva paketi, timeoutva po serverite i t.n.. i speed-a e mnogo baven, vijte ako nqkoi moje da otkrie generalna greshka da reply :) vapreki che ne e freebsd-specific :P ne sym go pisal az a i ne sam mnogo mnogo zapoznat s pf zatova ako nqkoi moje da pomogne e dobre doshyl :) btw moje i neshto ot tia opcii kato set
2006 Jan 17
9
Setting layout template in .rhtml
I''ve a single controller - class ContentController < ApplicationController end in the app/views/content folder I have quite a few .rhtml files I need to be able to choose a different layout template to use in each of these .rhtml files. i''d like to be able to do something like (which doesn''t work..) <% layout ''layout1'' %> Any
2007 Aug 04
5
reusable specs - almost there
I have a lot of controllers with virtually identical functionality for most actions. I''ve been using shared behaviours to DRY things up a bit, but I still have to create separate behaviours for each context before I can use the shared behaviours what I have now is a generic file which contains all the behaviours and examples common to all the controllers, and that file gets loaded from
2005 Dec 31
7
Application Errors w/ layout & custom view pages
1) I get Rails Application Error when trying to use layout test_controller def list layout "stdlayout" end in the views/test/layouts stdlayout.rhtml <html> <head><title>test</title></head> </body> <h1>Test</h1> <%= content_for_layout %> </body> </html> 2) I get Rails Application Error when trying to use a separate
2006 May 21
3
Where to put partials called from the application layout
Hello, My main application layout, app/views/layout/application.rhtml looks like this: something render partial_1 something else render partial_2 something else render partial_3 The partials are not really doing anything, i use them to keep the layout modular (i.e . to have ~30 lines instead of 200). Now, the question is where to put _partial_1.rhtml, _partial_2.rhtml, _partial_3.rhtml. If i am
2006 Jun 19
2
Partials from a master layout?
Hi I am using a ''master'' layout in my project by putting "layout ''main''" in my application controller so that the same layout is applied to every controller and I would like to use partials in the layout file (obeying DRY, of course!) but if I render a partial in the layout then whenever the layout is rendered by a controller the layout looks for
2006 Jan 03
3
Engine and controller layout confusion
Hi all, Installed the login_engine which is working. But I''m confused as to how I tell Rails to use the "/app/views/layout" rhtml files, when partials from the login_engine are used from "/vendor/plugins/login_engine/app/views/user". Do I copy login.rhtml to /app/view/mgmt? (mgmt is a controller name in my app) Along the same line: I also have a nil error on the
2006 May 18
3
Render layout on the fly
Hi guys, i was wondering if there is any possibility to render a layout on the fly instead of putting it into the layouts/ folder. Any ideas? -- Posted via http://www.ruby-forum.com/.
2006 Jul 22
3
How to use variables in your layout views?
Let''s say I wanted to find 3 products from my database and put them in the layouts/application.rhtml view. Where do I find these 3 products? Do I just do it in application.rhtml? <% for product in Product.find(:all, :limit => 3) %> Because I was under the impression that you really don''t want to do this in your views. You should do this in your controllers and
2006 May 02
3
CSS for flash messages
Hello all, I''m perplexed by the following: I''ve implemented flash messages in my application.rhtml with: <% for name in [:notice, :warning, :message] %> <% if flash[name] %> <%= "<p id=\"#{name}\" class=\"flash\">#{flash[name]}</p>" %> <% end %> <% end %> I''ve implemented CSS in
2008 Aug 30
5
make layout false
Hi i am having lot of HTML files those files dont want layouts so, for each rhtml i am mentioning in controller list.rhtml,edit.rhtml def list render :layout=>false end def edit render :layout=>false end is any simple method to mention wat are the files dont want layout in one line.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2006 Feb 02
4
How switching global layout (application.rthml <or> custom.rhtml)
Dears, My railsapp run using ''/layout/application.rhtml'' and under some conditions ( Authenticated user, url parameter) I like to switch globally to another layout, let''s say custom.rhtml Like : class AppController < ApplicationController before_filter :context_layout def index end end # application.rb def context_layout if <context_condition>
2002 Jan 03
2
Unable to compile wine CVS version
Hi, trying to compile CVS wine version after updating today reports these messages : make[3]: Entre dans le r?pertoire `/home/wine/graphics/x11drv' make[3]: *** Pas de r?gle pour fabriquer la cible `../../include/bitmaps/obm_lfarrowi', n?cessaire pour `oembitmap.o'. Arr?t. make[3]: Quitte le r?pertoire `/home/wine/graphics/x11drv' make[2]: *** [../../graphics/x11drv/x11drv.o]