similar to: Need to use a method without the layout

Displaying 20 results from an estimated 100 matches similar to: "Need to use a method without the layout"

2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all Apologies to the folks subscribed to the globalize list for dual posting this message... I''ve got a project running globalize and rails 1.1.4, and I''ve only recently adopted a strong love for testing. Now my models are 100% tested (I must note that I do not make use of any translations in the database yet), and I''ve now started with functional tests before
2006 Mar 01
15
Is there a perl equivalent of .= in ruby/rails??
I want to make a for loop that concats strings onto a variable: html .= var1 + "this is a test" + whatever What is the syntax that does this in ruby/rails? Also, is there a ''print'' method in ruby? Because when I try to use render_text it will only let me use this once. -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
4
customizing layouts for functions
I want to be able to have different layouts in my rails program for different functions. For example, when a person first comes to the site the layout will have a link that says ''home'', ''login'', or register on the menu bar. Once the user logs in however, the layout will change. I want it to show the links ''account manager'',
2007 May 09
5
layouts + routes = confused
I''m new to RoR and the tutorials I''ve found on the web, while helpful, aren''t as "complete" as I''d like them. I understand the basics when it comes to layouts and routes, but I''m trying to get them to work together. MY first task was to implement a user authentication system (registration/login/logout/change_password). This works fine with
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
2006 Feb 21
4
displaying double digits
Hi, I have a question about displaying digits in Rails. whenever I print the price of an item, if the last digit is a zero or double zeros then it doesn''t display properly. How do I display a number so that it looks like currency? thank you! -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
0
Starting the Riverside Ruby Users Group
Do you live in Southern California''s Inland Empire? Did you hear about the San Diego Ruby Users Group and think that''s just too far to go for me? Then you might be interested in forming the Riverside Ruby Users Group. For more details see my blog, http://anthonysseblog.blogspot.com/2006/04/forming-riversiderb.html , or the mailing list, https://www.cs.ucr.edu/mailman/listinfo/rug
2006 Jun 20
0
problem with list definition
hello, I am gererateing a missing template error when I overwrite the list part of the scaffold. it seems to have the wrong path to list.rhtml. Looking at the error path (below) it is looking for in a folder called <public>. This seems wierd to me becausae that path does not exist in the frame work. the path should be /Users/dima/Documents/ruby/rails/cookbook/app/views/recipe/list.rhtml
2006 Mar 30
1
Passing values to a Partial
Hi, I cannot seem to find out how to pass in a value to a partial. Can anyone help me? What I am doing(in the code below) is calling a function in my controller called setobject. This function just redraws the partial. I want to be able to change the value @objectname, redraw my partial and have it be able to use that value. The first the page is drawn it works, but when i call setobject it
2006 Apr 06
2
Quick Question: Using a CSS class statement in a link_to tag
Hi, I have a css file with lots of classes. I want different links on my page (which all use the ''link_to'' tag) to belong to different classes so that I can format their font, size, color, etc. Where or how do I use the css class name in the link_to tag? Thank you very much -- Posted via http://www.ruby-forum.com/.
2006 Feb 24
6
Duplicate entry - how to check if an id exist before saving?
How do I check if an entry exists before saving? Someone one told me to use the method find_or_create (or something like that) but it didn''t work because I think the version of rails that we have is not the most recent. I need a way to check if an id exists in the db before saving. Any suggestions? Thank you -- Posted via http://www.ruby-forum.com/.
2006 Feb 28
2
search button on ruby-forum.com isn''t working
I''d like to search the archives, but when I click on ''search'', the search page doesn''t show up. When will the search engine be up again? -- Posted via http://www.ruby-forum.com/.
2006 Feb 05
4
Another layout question - Layouts on a per method basis - Layouts with AJAX
I feel I am very close to understanding how layouts are used in Rails: Q1. I know one can specify a "default" layout for all methods in a controller by specifying layout ''my-default-layout'' How can this be overridden for individual methods so when those methods are called/executed, the overridden layout will be used. Is this possible? Q2. With no
2004 Sep 08
4
Where are the ADOBE PS Drivers?
I downloaded the drivers from: http://www.adobe.com/support/downloads/product.jsp?product=pdrv&platform=win 7.4MB Adobe Universal PostScript Windows Driver Installer 1.0.6 - English 5/23/2002 And installed the Generic Driver, shared the printer and went the the print$ share - none of the expected files were in there ... any ideas??? DEFPRTR2.BPD A 12188 Tue
2009 Apr 17
2
suggestion for R >= 3.0: computer-readable CHANGELOG
Hello, Here are a few questions that would be useful to get an answer via dedicated functions in utils or tools packages: - When did function foo appeared in R or in a given package? - When did argument myarg appeared in function foo? - When did function bar get deprecated or when did it disappeared? - I wrote a script using functions foo and bar with R 1.9.1. My script does not work any more
2006 Apr 05
2
Default page in the public directory
Hi, I have an index.html file in the public directory in my rails system. However, when I go to the DNS, the site is not defaulting to the index.html file that I have there. I get the following when I visit it: Routing Error Recognition failed for "/" Anyone out there got this to work? -- Posted via http://www.ruby-forum.com/.
2006 Feb 23
1
extracing a cookie before the cookie is set
I want to check it the @session[:user].id exists in an if statement. However, I the user has not yet logged in, the following error occurs. How does one check if this (or any other) cookie exists without getting this error? Thanks! Account#manager Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id -- Posted via http://www.ruby-forum.com/.
2006 Mar 05
3
Trying to connect tables .....
I am trying to ''connect'' two tables AdHour and Ad in the method below. However, the line with the asterisks is causing the following error: "You have a nil object when you didn''t expect it! The error occured while evaluating nil.user_id" I''ve included the model for both AdHour and Ad. Why doesn''t the script like how I am connecting the
2007 Dec 22
7
Summary: Upgrading to Asterisk 1.4
Friends, Thanks for all the feedback. If you have additional success stories or important issues, feel free to continue the discussion. I've learned a lot from your input. As a developer, I spend too much time in the bug tracker, working with particular bugs, so I often wonder how on earth anyone can use this buggy platform for anything business-like. It really feels good to get
2011 Mar 24
2
running a script repeatedly
Dear Debian People: Is there a way to run a little script (on Ubuntu Manic Meerkat) every hour, please? I know that this is more of a LINUX/UNIX question rather than an R question. Sorry. Thanks, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse@uhd.edu [[alternative HTML version deleted]]