search for: miriamraphael

Displaying 15 results from an estimated 15 matches for "miriamraphael".

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 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 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 Mar 31
3
Need to use a method without the layout
I need to use a method (called by one of my controllers) without using the layout. All the other methods in the controller need to use this layout except for thismethod (becausae it''s called by an Ajax script). I know how to use :layout=>layout_name when calling a method from another method, but nothing is calling this. The layout needs to be removed in the method itself or I need
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'',
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 Mar 02
0
syntax for number_with_precision
I normally use number_with_precision in my views and I''ve never had a problem. Now however, I need to use it in my controller because my Ajax method is calling the controller and the controller will return values to it which will be displayed in the span of my html document. In short, what am I doing wrong in the statement below? I need the ''bid'' to be formatted
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 Feb 27
0
Difficult bug
My program allows users to create an account to login, etc. like most other programs. I am using the login routine supplied by rails. In my program I have an option to ''add funds'' to the account. When the user selects this option I ask them how much they want to pay, etc., I then take this info and the user is taken to an authorize.net payment page (I pass the data that
2006 Feb 27
1
Uploading into a directory outside of the rails root
Does anyone know how to upload into a directory outside of the rails root? -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
0
session disappears when I leave site
My program allows users to create an account to login, etc. like most other programs. I am using the login routine supplied by rails. In my program I have an option to ''add funds'' to the account. When the user selects this option I ask them how much they want to pay, etc., I then take this info and the user is taken to an authorize.net payment page (I pass the data that
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 28
0
Help: Script isn''t sending any email
Hi, I followed the directions to a ''T'' from the following website: http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer However, the script is dying because it says that the <%= first_name %> value in my notifier view is nil. here is my code: Controller code (abridged): def signup userid = @session[:user].id @user = User.find(userid) @bill =
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
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/.