similar to: sharing layouts across multiple Apps

Displaying 20 results from an estimated 70000 matches similar to: "sharing layouts across multiple Apps"

2009 May 13
8
Sharing sessions across rails apps 2.3.2
I''ve done this in 2.2, but cannot figure it out for 2.3.2: Basically, I want to be able to share session data across a couple of apps. The way I did this in 2.2 was to create a view called sessions in the second app that read the sessions table of the first app. This done, I could tell them both to use active record sessions, and, lo! I had a shared session. Once I''d written a
2006 Apr 12
4
CSS and Javascript with partials and layouts
Hi, I''m developing an application that uses a layout called main on every page. Most of the individual pages are represented with a single partial template, but there are several pages that are composed of multiple partials. My main layout looks something like this: Code: <html> <head> <title><%= @title %></title> <%= stylesheet_link_tag
2008 May 27
1
Camping Technique -- Multiple Layouts
Hey Campers, Here''s a little technique you can use to support multiple layouts within a Camping app. def layout @layout ||= ''default'' send("#{@layout}_layout") { yield } end The minimum you have to do after this is define a *default_layout*, but (as you can hopefully see) you may define any number of arbitrary layouts to wrap your content in. Just set
2007 Oct 12
4
Other apps checking Day/Night
I'm fairly new to Asterisk, so please bear with me if this is silly question. I'd like to run a script on my server that would take the "Call now to order" banner off my website automatically when I put my phone system on night. I can handle the webserver side of things, but I don't know where to begin on the Asterisk side of things - can a simple script be run to
2005 Dec 30
0
Newbie multiple controllers/layouts question
Hi all, I''m playing around with Dave Thomas'' depot project, trying to add site search, starting with code from the search_generator gem. I got basic search working. Now I''m trying to understand how to integrate the search result pages more fully into the overall application and I''m having architectural "issues". search_generator creates its own
2006 Nov 04
1
Partials shared between multiple controllers
(Just getting started w rails, web app dev for a long time...) I have some partials that are common across multiple controllers. They''re not universal, so they don''t belong to be part of these controllers'' layouts. It appears that I can put them at the root of /views/, and render them using a relative path, like so: <%= render :partial => "./footer"
2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller: I am aware I can do... render(:layout =>''mylayout'') for individual actions, however this becomes a multiple render problem. I tried this... layout "mylayout", :except => [:myaction, :myotheraction] layout "myotherlayout", :only => [:myaction, :myotheraction] However that doesn''t
2010 Apr 01
1
Sharing levels across multiple factor vectors
Hi, I've got a data frame with multiple factor columns, but they should share the same set of labels, such as this tiny example: df <- data.frame ( a = factor( c( "bob", "alice", "bob" ) ), b = factor( c( "kenny", "alice", "alice" ) ) ); In my data, though, the strings are enormous. I would like to replace them with integers,
2006 Jun 11
0
shared code among multiple apps?
I''m very much a newcomer to Rails (and Ruby), so forgive me if the answer to this question is obvious: Is it possible to share files among two or more rails apps? I''m using a shared host with multiple domains pointing to various sub-directories containing different rails apps, and I was hoping there''s a way to have common files (i.e. a view containing a set of links to
2006 Nov 04
0
sharing a partial across multiple controller views.
Hello, I was wondering if there was a way to share a partial across multiple controller views? In other words, if I have 2 controllers, the corresponding directory structure for the views of those conrollers would like so: views/controller1/<views> views/controller2/<views> I would like to share the partial between controller1 and controller2. Could I make a share directory under
2006 Jun 09
1
Sharing data between several Rails apps
Could anyone point me to some resources that explain how to share data between two Rails apps? For example, say I have a wiki and a blog, as separate apps, and I want to be able to integrate them so the user seamlessly goes between the two on the same site. How do I pass user information between the two apps? Are rails session variables accessible to both apps? Do I have to pass everything
2005 Dec 16
3
sharing layout code among different controllers
I want to have one layout for my whole application. The app has multiple controllers. Is it true that layouts are associated w/ one controller? thanks, etienne -- Posted via http://www.ruby-forum.com/.
2006 May 30
1
sharing partials across controllers.
Hi, I was wondering if it is possible to share a partial across views in different controllers? If so, how would I go about doing this? Would I pass in a parameter to render(...) of the partial telling it where it is located? And help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 22
4
rendering partials in layouts?
Hello all, Forgive me if this is a really stupid question. How do you render partials in a layout? It''s probably way easier than i believe it to be. thanks! -- Posted via http://www.ruby-forum.com/.
2006 May 23
11
adding layouts within layouts
Hi, I want to be able to have several layouts within each other so that I don''t have to keep repeating the layout code for one, in another. An example would be having a layout for the title of your web page and then having an embedded layout for the body portion in which the HTML for whatever view gets displayed. Is this possible? Thanks. -------------- next part -------------- An
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
2005 Mar 03
1
Can't get things running
I'm new to wine, and I don't seem to be able to get any of my apps running. I configured Wine on Fedora Core 3 with Winetools. Wine is working, I can run the builtin Win apps, and my Win installers all run but post install I'm not making much progress. My first app (Ckpp.exe), which appeared to install fine pops up a dialog box saying: DDE requires ddeml.dll I did a locate
2006 Jun 22
5
Problems with layouts
ruby script/generate controller Tools::Search - ok in views/layouts/application.rhtml: <%= render_component :controller => ''tools/search'', :action => ''searchbox'', :params => {:context => ''header-section''} %> in
2004 Jul 02
2
file size and actually blocks do not match
I have a disk where serveral files have a file size that is much bigger then the space they actually use. THe file size is bogus. In the example below, the size is reported as 4.2MB but the file is really supposed to be on 116K which is true accoring to du and the block list from debugfs. However, doing a 'cat |wc' file actually gives me 4.2MB bytes. Where are those extra bytes coming
2007 Aug 11
0
nested layouts
hi, I''m using a helper like in nested-layouts plugin as follows def inside_layout(layout, &block) layout = layout.include?(''/'') ? layout : "layouts/#{layout}" @template.instance_variable_set(''@content_for_layout'', capture (&block)) concat( @template.render( :file => layout, :user_full_path => true ),