similar to: Auto drop list: Create a form professional or easy?

Displaying 20 results from an estimated 1100 matches similar to: "Auto drop list: Create a form professional or easy?"

2005 Dec 31
7
Dynamic form? Not really!
Hi guru''s out there, Im happilly coding my first rails app, and all goes well. I find myself manually coding in a particular field all the time (company_id), that relates the contact to a company. The total coding of this form seems somewhat much. Could somebody tell me what Rails power I''m possibly missing and stuborn as I am trying to do myself? I was wondering if the
2006 Jan 22
0
Get colum types in auto form
Hi all, I''m trying to build a routine that generates table rows with the appropriate field types (text_area and text_field for now), and filters out the ''created_at'' and ''deleted_at''. <% for column in Project.content_columns %> <tr class="ListLine<%= cycle("0","1") %>"> <td><%=
2006 Feb 27
1
Undefined Method Error in View
After messing around with PHP for over a year, I took one look at Ruby on Rails and fell in love. But it''s one of those confused "Men are from Mars, Women are from Venus" type things... I''ve written a method which does find_by_sql to pick a random row from a database. When I call that method I get an "undefined method ''text'' for ..."
2006 Jan 21
0
helpefying a list partial
Hi all, I''ve got this code which is alway the same. In a list it displays a show, edit and destroy icon behind each record. <% for todo in @todos %> <tr valign="top" class="ListLine<%= cycle("0","1") %>"> <td><%=h todo.prio %></td> <td><%=h todo.title %></td> <td><%=
2006 Aug 05
1
Viewer Problem
In a standard scaffold generator, the list.rhtml looks something like this ... <% for column in Book.content_columns %> <th><%= column.human_name %></th> <% end %> How can I modify this code so for each table column add my own name not the "human_name" generated code? -- Posted via http://www.ruby-forum.com/.
2005 Dec 30
3
Too many columns for list.rhtml to display on one page
I''ve gone once through the Agile book and am now attempting my own rails app. I''ve created a table named ''volunteers'' with over 15 columns. The problem is the default list.rhtml that is created with the scaffold, shows all the columns. I only want to show 4 of them with the list view. Where would I start to only return a handfull of columns to the
2006 Apr 27
2
"for column in..." not picking up _id columns
My code executes fully: <% for column in ModelName.content_columns %> <th><%= column.human_name %></th> <% end %> but it does not pick up any columns in my model''s table that end in "_id". Is this by design? Is there a helper method that will reference the related tables? Or will I need to code the column titles and detail records by
2005 Jun 13
3
validations not working with collection population droplists
I have an ADD form with foreign key field values selectable via select list ( collection_select (...)). When I add validates_presence_of :someotherfield to my model for error trapping, I get the following error for each droplist: NoMethodError in Reviews#create_curriculum Showing /reviews/_form.rhtml where line #16 raised: undefined method `inject'' for nil:NilClass Extracted source
2006 May 01
1
Show/Hide with AJAX
I''m trying to implement a show/hide details function. I have the show part done, but I''m not sure how to get it to hide. My app looks like this so far: View: <%= link_to_remote "Show/Hide", :update => "details", :url => { :action => "show", :id => leif } %> <p id="details"></p> Action: def show @leif =
2006 Dec 28
1
Default Scaffolding Gives Errors
This is the default scaffolding for list.rhtml: [code] <h1>Listing <%= @scaffold_plural_name %></h1> <table> <tr> <% for column in @scaffold_class.content_columns %> <th><%= column.human_name %></th> <% end %> </tr> <% for entry in instance_variable_get("@#{@scaffold_plural_name}") %> <tr> <% for
2006 Sep 29
1
newbie Q: it won't display foreign keys...
I have two tables CREATE TABLE continents ( id int(11) NOT NULL auto_increment, name varchar(255) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE countries ( id int(11) NOT NULL auto_increment, name varchar(255) NOT NULL, continent_id int(11) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; I generate scaffolds for country and for
2006 Mar 06
0
connecting to samba from 2003 sbs domain client running xp profi
Hi everybody, I have a network which consists of a linux data server, running Samba, a windows 2003 sbs, and a few xp professional clients which login to the domain server (2003 sbs). On the linux box, samba is running, this pc is always on. When i start the client pc (xp profi) and login to the domain, i can access the samba shares at full speed. Now the problem: When the xp profi client is
2006 Mar 05
2
Need help understanding Rails magic!
Hi, I''ve just been pleasantly surprised, again, by how much Rails does for me, but I am *really* surprised. Surprised as in "how the heck did that happen?" I''d really like to understand this and would appreciate any help. Big picture... the user is presented with a form that allows them to select one or more check boxes to record their allergies. The form uses the
2006 Mar 06
0
connecting to samba from 2003 sbs domain client running xpprofi
Hi, Addition to my message below.. Computers which doesnt login to the domain controller at startup like windows xp home ed. , dont seem to have this effect. It seems that you have to keep the connection up and running on the xp profi pc's to stop this problem from happening. ??? Regards, Martijn -----Oorspronkelijk bericht----- Van: samba-bounces+martijn=gova.info@lists.samba.org
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that first sets up the depot application (page 68), there is this bit of code from a view: <% for product in @products %> <tr> <% for column in Product.content_columns %> <td><%=h product.send(column.name) %></td> <% end %> etc... I am trying to absorb both Ruby and
2006 Aug 07
3
character encoding in RoR
Hi, I''m a newcomer to Ruby and to Rails, and am having a problem with character encoding. Now, I know ruby doesn''t handle unicode...but, characters like ? (eacute) and ? (ccedil) are part of the iso-8859-1 charset, so it shouldn''t be a problem, right? But, for some reason, the string functions still seem to hang on those characters. As an example, in a brand new rails
2006 Mar 07
0
connecting to samba from 2003 sbs domain client runningxpprofi
Nobody any idea on where to start looking for this ?? Thanks -----Oorspronkelijk bericht----- Van: samba-bounces+martijn=gova.info@lists.samba.org [mailto:samba-bounces+martijn=gova.info@lists.samba.org] Namens Martijn Hazenberg Verzonden: maandag 6 maart 2006 14:57 Aan: samba@lists.samba.org Onderwerp: RE: [Samba] connecting to samba from 2003 sbs domain client runningxpprofi Hi, Addition to
2006 Jun 01
3
more questions: human_name
One more question: Is there some way to set the human_name of a column? e.g.: human_name for column address1 shouldn''t be Address1 but "Address, line 1". If not, should I make a hash with my custom names? Best regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA
2009 Nov 11
1
update.packages()
Dear all, W.XP I recently upgraded to R2.10.0 and did what I usually do: copied all "special" libraries from the old installation and then used "update.packages()" on the command line. Nothing happened. Then I clicked on the same command on the droplist which generated "update.packages(ask='graphics')", but still with no effect. When I tried to load the
2006 Sep 24
0
How to change human_name
Is there a way to change the value of human_name() for a particular model attribute? Say I want the human name for line_item to be "Items" instead of "Line items". Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com