similar to: sharing layout code among different controllers

Displaying 20 results from an estimated 10000 matches similar to: "sharing layout code among different controllers"

2005 Dec 14
5
inserting multiple rows
I have table which stores multiple entries. Each row has user_id, game_id and a pick_id. On a page the user has to make load of choices. All this gets submitted. the html looks like so: <input type="hidden" name="game_id" value="3"> <input type="hidden" name="user_id" value="19"> <select name="pick[3]"> ....
2005 Dec 17
13
Rookie with ActionMailer
To start out I''ll say that this is the first thing that I''ve ever built that''s been intended to programmatically send email. I''m looking at examples in AWR and also on the wiki. I feel that I sort of have things set up right but I''m getting an error I can''t grok: Net::SMTPFatalError in Home#email_list 550 5.7.1 Unable to relay for
2006 May 21
1
how do I bypass using the standard layout for a file
Hi, i''m trying dyamically add a bit of code into a page by updating a div. this works great but it puts the page in with the standard layout around it duplicating it. Is there someway just to bypass using any layout with a rhtml file? -- Posted via http://www.ruby-forum.com/.
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
2009 Apr 27
2
How to create a graph layout?
I all, I want to create a graph layout in a 3x3 matrix like this: ylab |__| |__| |__| ___ ___ ___ ylab |__| |__| |__| ___ ___ ___ ylab |__| |__| |__| xl xl xl With this layout, then I'll insert the 9 plots. How ca I create it? -- CdeB
2005 Nov 07
5
Switchtower deployment
Hi, Has anyone experiences using SwitchTower (Windows) in a shared hosting environment (Textdrive)? I already patched the SwitchTower rake tasks (I don''t know if someone is interested on it), but i still experience some problems (not in the sudoers list, ...). Thank you for answer (and thank you to the textdrive guys, i never had a such fast support!) -- Jean-Etienne Durand
2005 Nov 17
8
Components and layouts
Is there anyway for a component to use the layouts availble to rest of the app, but still use the templates under its own directory? Setting the layout with a "layouts/admin" say, just produces "can not find admin.rhtml...". Is there anyway around this? If not I guess I could just put the views under app/views, but really wanted to keep things seperate. Thanks! -Nick
2005 Dec 28
3
[Templates] [Noob] templates across controllers?
Fine Rails Hackers: I am trying to decide how to approach a templating concern. I would like to define a standard template for all of my pages (including a basic header, styles, footer) across my five base controllers: desktop, events, financials, and records, account. Is there a top level place to declare a template across the entire application regardless of the controller? I understand how
2005 Dec 29
1
Layout for a module
Hi, I have several controllers under 1 module. What I want to achieve is to use a layout that all controllers will use. AFAIK in Rails, I can only define a layout for a controller, and not for a module. Is it possible to define a layout for a module? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jul 19
3
Trouble with links in the layout - Help
I''m trying to get my del.icio.us links to appear in the layout, so it''s throughout the entire application. I have the interface to the API working, I just don''t know where to put the code (in what controller?) and layout to be application wide. I tried putting the code in "application.rb" and then the view stuff in "application.rhtml" but that
2006 Sep 11
5
WebServices & controllers
Hi, I am having problems with REST web-service support. I have a simple controller: class DocumentsController < ApplicationController wsdl_service_name ''Documents'' web_service_api DocumentsApi web_service_scaffold :invoke def list @docs = Document.find(:all) respond_to do |wants| wants.html wants.xml { return @docs .to_xml } end end end
2020 Apr 10
15
[Bug 1422] New: iptables-nft fails to check / delete rules in raw table
https://bugzilla.netfilter.org/show_bug.cgi?id=1422 Bug ID: 1422 Summary: iptables-nft fails to check / delete rules in raw table Product: iptables Version: 1.6.x Hardware: x86_64 OS: Debian GNU/Linux Status: NEW Severity: major Priority: P5 Component: iptables
2006 Jun 29
3
Questions on ActiveRecord implementation
Hi, I got several questions on AR adapters implementation: 1. For SqlServer/Oracle, SQL queries are built by concatenation, and there is no use of parameters. Especially for Oracle, this is very bad, no optimization can be done. Is there a reason for that? Does anybody plan to fix that? 2. When updating a model, _all_ columns are updated. Why not only the diff is updated? Using blob/cblob, it
2006 Aug 03
3
HELP: multiple select list in ror
Hi Search doesn''t seem to be working so my apologies if this has come up before. I have some simple code in a view that generates a multiple select: <select name="menu_select" size="5" multiple="multiple"> <% for m in Menu.find(:all) %> <!-- this needs to be abstracted in ror fashion --> <option value="<%= m.id %>"
2019 Feb 20
3
code for sum function
Dear Tomas, Where do I find these files? Do they contain the code for the sum function? What do you mean exactly with your point on long doubles? Where can I find documentation on this? Cheers, Rampal On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com wrote: > See do_summary() in summary.c, rsum() for doubles. R uses long double > type as accumulator on systems
2006 Jun 11
6
page.update_html not executed
Hi, when doing: render :update do |page| page.replace_html ''suggested_contractors'', :partial => ''contractors'' page.visual_effect :highlight, ''suggested_contractors'' end I got js as output, it is not executed, return html *contains*: try { Element.update("suggested_contractors", " \n 12345678910\n \n
2009 Mar 16
4
Get user system name
I would like to get the name of the user form the system. Is it possible ? Something like >system.user() returning something like [1] "etber12" Thanks, Etienne [[alternative HTML version deleted]]
2006 Jun 16
6
rendering mathematical equations
Any recommendations on how I can get mathematical equations into my resulting html? (Besides using x^2^ type markup.) I figure I could parse out equation text from my main text before RedCloth ever sees it... and then maybe create png''s somehow from it, putting the links to them back into the main text before handing it over to RC. But I don''t know of a util that will generate
2005 Jan 28
16
primary_key_prefix_type, support for non-integer primary keys
Hello! I''m just starting out with Rails--and Ruby itself for that matter--and have a couple of questions regarding primary_key_prefix_type and non-integer primary keys. I see in the ActiveRecord documentation [1] that by default the primary key of a table "foo" is expected to be "id", though primary_key_prefix_type this can be changed to :table_name or
2006 Jun 14
7
CR issue
Hi, I am using RedCloth (3.0.4). First using online text2html (http://www.textism.com/tools/textile/) , "123 456" returns <p>123<br />456</p> But by code: <code> require ''RedCloth'' puts RedCloth.new("123\n456").to_html </code> I got: <p>123 456</p> CR is not taken in consideration. Is there any parameter I am