similar to: Formating @content_for_layout

Displaying 20 results from an estimated 2000 matches similar to: "Formating @content_for_layout"

2006 Feb 14
3
Ruby equivalent to PHP Beautify?
Hi all, I am working on a project in Rails for my senior seminar class. I am fairly new to Rails but I have done a major project, so I know a little. The one thing I cannot find however is a way to make the html code that is output look any cleaner. So, I was wondering if there was a function/library/extension that worked like PHP beautify. Thanks for your input in this matter. I am sure I will
2006 Mar 01
2
Method Calling Problems
Hi all! I am attemping to call a method inside of my LeviUserController named show_userland from my LeviInterfaceController class. No matter how I do it, I keep getting some type of error. If I make the method a class method, then my render_partial inside of show_userland can''t be found. If i call it using @luser = LeviUserController.new; @luser.show_userland; I get an error with a nil
2006 Mar 01
1
Using delegate templates
Ok, it looks like what I need to do is use a delegate template, but I can''t find anything anywhere online. Has anyone ever used this feature before and could possibly explain it to me please? -- Topher Fangio fangiotophia@gmail.com http://www.fangiotophia.com Website Specialist Fangiotophia Designs (325) 660-7141
2006 Mar 01
4
graphics rendering
Hey Has anyone got a graphics server running alongside ruby on rails? Kind of new to graphics rendering on a web server, so some general tips on a successful direction to go in would be great. I need it for automatic rescaling of images, similar to flickr. Thanks, RGC -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 10
4
mongrel and comet "implementation"
Hey folks, I was playing around with adding Comet (a javascript technology used to receive events without AJAX polling) support to Mongrel. More info about Comet here: http://en.wikipedia.org/wiki/Comet_%28programming%29) I sort of got it working. My code is available at: http;//cyll.org/comet.tar.gz Run comet.rb from inside the directory and point your browser at: http://localhost:5555/ The
2006 Aug 09
3
[Markaby] yield instead of @content_for_layout?
We''re supposed to use yield instead of @content_for_layout, but I can''t get yield to work in a Markaby template: yield text yield Either one of these lines results in a ''no block given'' error (but ''text @content_for_layout'' works). Anybody know how to use yield instead? Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2006 Jul 13
6
Content_for_layout
Question- if I have more then one view I wish to display in a layout , how do I tell content_for_layout what to display and where ? TIA Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060713/a2d0a8c8/attachment.html
2004 Jul 28
2
Building Samba 3.0.5 on HP-UX 11.11
First -- to avoid the common answers to the 'building on HP-UX' questions that seem to be available on the list and the web: 1) using the depot from the Porting Center won't work, it's well downrev of 3.0.5 and I need to get the new security fixes (so that the security team will go back into it's dark dank den and fear not for the security of our environment) 2) samba.org
2006 Jan 23
8
yield vs @content_for_layout, etc..
I am relatively new to RoR and Ruby for that matter. A few questions for the pros: Question 1: In the 5min ajax video the presenter uses <%= yield %> in his layout. In the agile book, @content_for_layout is used. Since, yield is an actual Ruby construct, is it more efficient and preferred? What is the difference? Question 2: Links are often of the form :action =>
2006 Jul 27
3
Multiple @content_for_layout in template?
Hi guys, I''m having a few experiments making sites with Rails and I''ve come across a problem. I''ve made a template for the parts of the site that the public will see and it has two main columns in it, a main content column and a thin side column. The content in each of these will change on each page of the site but I''m not exactly sure about how to send
2006 Mar 13
5
What is the matter with content_for_layout?
Here is my layout file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>My Demands</title> <%= stylesheet_link_tag ''ajax_scaffold'', :media => ''all'' %> <%=
2007 Sep 01
2
@content_for_layout or changing default fields on "new" page
Hi all, I test my small Rails apps using SQLite3, but I think the problem appeares in every type of database. . When I create table and scaffolding apps, a HTML view is based on columns types. Everything is OK until I want to change preconfigured behaviour. . I created table with a column of type INTEGER, but I wanted to display check box instead of text field and then save 0 or 1 in database.
2006 Aug 11
5
Unit tests - NilClass problem
Hi! Yesterday I started to write my unit tests for the fist time using rails. I''m using this method: http://blog.codahale.com/2005/12/23/a-rails-howto-simplify-your-unit-tests/ My customer_test.rb looks like this: require File.dirname(__FILE__) + ''/../test_helper'' class CustomerTest < Test::Unit::TestCase fixtures :customers # Replace this with your real
2006 May 29
0
@content_for_layout transition effects
I was guessing if its possible to make transitions effects for the code that are included inside @content_for_layout(ex: new, list, edit) like a fade out and fade in, right now im using the accordion effect of moo.fx but the content its to much inside and sometimes takes a while to load and show the effect properly. Any example or advice its more than welcome, ill keep searching about this.
2008 Sep 13
3
Beautify R scripts in microsoft word
I am generating a report containing several R scripts in the appendix. Is there any way to "beautify" the R source codes in microsoft word, similar to what we see in tinn-R ? Thanks _________________________________________________________________ [[alternative HTML version deleted]]
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
2005 May 12
3
Dovecot-stable rpms
I've been searching, and I can't find any rpms of dovecot stable for RHEL 4. Does anybody know where I can get one? Ever since we went from IMAP-UW to Dovecot, we've been having frequent problems with mbox corruption, and I've read that 1.0 fixes many of those types of problems. Has anybody else found an rpm for RHEL 4 of any Dovecot greater than 1.0? -- Topher Fischer System
2005 Dec 16
3
Purpose of ''yield'' in layout file in Flickr video?
During the excellent flickr video, the presenter adds the following to the applications layout file: <body> <%= yield %> </body> What is the purpose of the ''yield'' line? I would think there would be a content_for_layout tag there instead. Thanks, Don -- Posted via http://www.ruby-forum.com/.
2011 May 02
2
Re: Caution when deleting .wine ...
jjmckenzie wrote: > On Mon, May 2, 2011 at 1:16 AM, topher.becca <wineforum-user at winehq.org> wrote: > > > > > When I entered 'rm -rf ~/.wine' it says: > > rm: /Users/christopherwelch/.wine/drive_c/Program Files/Inbox Toolbar: Permission denied > > rm: /Users/christopherwelch/.wine/drive_c/Program Files: Directory not empty > > rm:
2008 Apr 10
2
Beautifying axis tick labels
Hi, For example, the y axis shows "0 500000 1500000". Is there any way to beautify the tick labels to get 0 5 10 15, and at the top of y-axis "x10^5" (superscript 5) ? My plots all have different ylim, how to perform the beautification automatically ? Thanks Stanley [[alternative HTML version deleted]]