similar to: Comment out RHTML code?

Displaying 20 results from an estimated 3000 matches similar to: "Comment out RHTML code?"

2006 Feb 13
2
Ajax.Autocompleter is not a constructor
Hi Rails, I am having trouble setting up an autocomplete text field. Using rails 1.0.0 and just trying to copy the simple scriptaculous demo (http://demo.script.aculo.us/ajax/autocompleter) fails. My view and controller are set up the same way. In firefox 1.0.4 (and safari, don''t remember the version) I get the Ajax.Autocompleter error in the javascript console when loading the
2006 Feb 27
1
@content_for_sidebar?
Okay, I see this instance variable places, but I can not determine if it is real or where the content comes from. I''ve tried views/<controller>/sidebar.rhtml, _sidebar.rhtml, views/layouts/sidebar.rhtml and views/layouts/_sidebar.rhtml. Does this actually exist? What''s the Rails Way to make a good sidebar? http://www.google.com/search?q=content_for_sidebar Thanks,
2006 Feb 28
2
AJAX: do render but show element in same click?
I''m a rails newbie. I''ve got a link_to_remote that puts a partial render into a div ("note1", "note2", etc.). As part of the display that comes up, I put in a hide note link (element.toggle). Click that, the div goes away, everything''s great... except now I can''t get it back. How can I call the remote AND make the div show at the same
2006 Feb 10
0
AJAX update for select list onchange?
Hi Rails Users, I have a select list that I''d like to use to update a div onchange. Right now I just have the div appear, but not update: <%= select_tag( "profiles_select", option_tags = @profiles, { :onchange => "new Effect.Appear(''the_profile'', { duration: 0.5 } );"
2006 Feb 14
1
Controlling the controller for text_field_with_auto_complete
Hi Rails, I have a text_field_with_auto_complete that I would like to execute in a different model than the view that rendered it. Is there a good way to go about this? Thanks, --Dean -- Take your time, take your chances [3278.7 km, 273.4] Apparent Rennerian -------------------------------------------------------------------------------- It matters not how strait the gate, / How charged with
2006 Mar 03
0
unused composed_of bits
I implemented a Temperature model for my application. It is pretty basic, composed of a temperature, a unit and some conversion methods. In my app model I decided to store temperature values in Fahrenheit, so there is no need to remember the units between invocations. I am having a little trouble composing my app model. A little bit of my temperature class: class Temperature # Composed of
2014 Jul 31
1
Asterisk 1.8.8.0 is raising...
Hello, I have Asterisk 1.8.8.0 install in a HP DL180G6, Asterisk was usually working as normal and suddenly Asterisk start raising up the CPU very high untill the server crashes. Any suggestion ??? Best regards -- Leonardo Sandoval Lozano Estudiante I am the master of my fate: I am the captain of my soul. William Ernest Henley -------------- next part -------------- An HTML attachment
2006 Sep 28
15
Inserting rows into linking table
Hi, I have two objects: Contacts Lists I want to be able to add multiple contacts to multiple lists. I''ve created a linking table and a form that allows me to select the contacts using checkboxes, but I''m having some problems with the controller and model. I receive the following error message when I submit the form: Mysql::Error: Cannot add or update a child row: a
2007 Apr 12
3
[LLVMdev] Compiler Name
Suggestions: Zembla - It's a fictional northern European country in "Pale Fire" by Nabokov. Pala - The island utopia in Aldos Huxley's "Island". Thra - The world of The Dark Crystal. -bw
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity required of a particular item for a basic shopping cart app: <%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td> but my next screen (a cart screen) doesn''t reflect what was entered in that text field when the item is added to the cart. That is,
2006 Aug 15
3
update or alter cart
I want to modify and update the items in the Depot - "display_cart". Since the cart is in a session, its a little hard to get at the data. I just want to create a way to change quantities, prices and recalculate. Has someone done this, and could you point me to the right direction. Thanks Chas -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
3
Form with multiple rows of content
I have looked at examples for this. I found a similar example in the Agile Web Dev... book but that didn''t help. Here''s what i am trying to do. A Cart has many line items. On the Display Cart page, I want to provide the user the option to update quantities. Here''s the rhtml code: <%= start_form_tag :action => ''update_cart'' %>
2007 Apr 12
0
[LLVMdev] Compiler Name
Invictus - unconquerable, and Invictus.org doesn't appear to exist. On Apr 12, 2007, at 1:34 AM, Bill Wendling wrote: > Suggestions: > > Zembla - It's a fictional northern European country in "Pale Fire" > by Nabokov. > Pala - The island utopia in Aldos Huxley's "Island". > Thra - The world of The Dark Crystal. > > -bw >
2007 Aug 30
3
Rails - depot application
I''m doing the depot example in the Agle Web development book. I''m getting this error: "undefined method `product'' for #<BigDecimal:331ce70,''0.21E1'',8(8)> " "Extracted source (around line #9): 8: for item in @items 9: product = item.product 10: -%> 11: <tr> 12: <td><%= item.product%></td>"
2006 Mar 01
2
active_record postgresql adapter problem
Instead of using numeric I created the field "unit_price" as PostgreSQL type money. Now when I try and add a row I get the following. How do I override AR default behaviour to cast numeric post data to money, or am I forced to only support database types that active_record knows about? RuntimeError: ERROR C42804 Mcolumn "unit_price" is of type money but expression is of
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in forms, this is my code <%= start_form_tag :action => ''create'' %> <div class="form1"> <table width="auto" boader="8" cellspacing="5" cellpadding="5"> <% hidden_field ''line_item'', ''client_id'', :value
2006 Jan 06
3
Where to place a global function
Hi all, I have a little function called format_price(price) that simply formats the argument as a dollar sign, dollar amount, dot and penny amount. Then, in a .rhtml file, I could do this: <%= format_price(item.unit_price * item.quantity) %> But where do I put the format_price() function definition? The app couldn''t find it in app/controllers/application.rb. Where do I put it
2005 Dec 23
5
Can''t get data from products into @order
I went throught the "agile web developemnt with rails" and Now I''m trying to ''enhance'' the code with some extra options. When I go to admin/shipping I want to include some data from the products table in with the order info listed. I can''t seem to get this to work. in my partial form I''m trying to add this: <td
2006 Jul 26
8
team captain - habtm w/has_one...
the below... class User < ActiveRecord::Base has_and_belongs_to_many :teams class Team < ActiveRecord::Base has_and_belongs_to_many :users has_one :captain, :class_name => ''User'' produces the error... Mysql::Error: Unknown column ''users.team_id'' in ''where clause'': SELECT * FROM users WHERE (users.team_id = 1) LIMIT 1 i
2008 Oct 08
2
Creating a matrix
Good evening. I have this following table and I would like to turn it into a matrix in which my rows would be filled with de "Sellers", my columns with my "Articles" and my data would be the mean unitary price used by each seller in each produt. Seller Art. Unit Price 1 v1 p1 9.148352 2 v2 p1 2.858073 3 v3 p1 3.775315 4 v4