Displaying 20 results from an estimated 400 matches similar to: "Validation fails with select option list"
2006 Feb 02
4
Doubts on validation
Hi All,
View
********
<tr>
<td><b>Student: </b></td>
<td><%= text_field "student", "fname", "size" => 40, "maxlength"
=> 40 %></td>
</tr>
<tr>
<td><b>Program: </b></td>
<td><select id="student_program_id"
2006 Jan 28
2
Trying to understand the difference between similariterators
No I have tried that. It gives me just this output #
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Pat Maddox
Sent: Friday, January 27, 2006 2:48 PM
To: rails@lists.rubyonrails.org
Subject: Re: [Rails] Trying to understand the difference between
similariterators
Well first of all, when you''re iterating
2006 Jan 04
3
PDF Form Reader using rails/ruby
Can someone guide me the best possible way to read a PDF form fields. I
have seen some references to the PDFWriter but not the reader. Any help
appreciated.
Thanks
Silvy Mathews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060104/641bd399/attachment.html
2006 Jan 18
6
Mention about an open source image editor
Some days back there was a mention about an open source image editor
that people uses for application layout designing. I have forgotten
about the name of that software.
Can someone send me the link?
Silvy Mathews
2006 Jan 08
4
Rails table pluralizing Issue
Hi,
I am working on a table with name "addresses". However when I do a
ruby script/generate scaffold Address, I am not able to access
http://localhost:3000/addresses. I am getting the following error.
uninitialized constant Addres
This error occured while loading the following files:
addres.rb
How do I resolve this issue.
Thanks
Silvy MAthews
2006 Jan 27
2
Trying to understand the difference between similar iterators
What''s the difference between these two?
Objective:
Trying to display the addresses of the students that has "has_many"
relations with addresses
<td><% @student.addresses.each {|address| "Address:
#{address.addr1}<br/>"} %> </td> ****** did not work
<% end %>
This code worked:
<td><% @student.addresses.each do |address|%>
2006 Apr 12
9
Showing Images from a file store
Hi all.
I am wrting a small content management tool for my company and was
trying to display some images from our file store shown below.
<td> <img src="\\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"/>
The app was displaying the image when it is under the \public\images
directory.
Is there anything special we need to do to get a file from outside the
root of the application?
Any help
2006 Jan 09
3
Design Question
I am sure some of you can give me an insight into this. This is more
towards the database design for the scenario below:
Say for example,
I have a person table and this person can have different address types.
One could be Home and the other could be say Office.
Should be model this
Table people
id
fname
lname
Table addresses
id
person_id
addr1
addr2
....
or
Table people
id
fname
lname
2006 Jan 26
1
Explanation on Activerecord Associations
A while back, I had some doubts on the use of associations. I still
haven''t got a satisfactory guidance so that I can spring ahead with the
project. I am trying to understand from a ruby point of view on doing
things. Basically I have a controller that gives me a list of students.
And each student may have say home address and mailing address. Hence I
can model as shown below. How do I
2006 Jan 18
5
Inserting the parent Id to the child table
Hi All,
I need your suggestions for the following. I am still learning RoR and
pardon my ignorance.
I have say two tables.
Table A : students
Table B : addresses
Table B has student_id as the foreign key to Table A
If I am displaying the list of students and wanted to get individual
students addresses based on their id, is the only option is to get the
id from students controller method list
2005 Dec 22
3
RoR presentations
Hi,
I was wondering is there any editor that can do autocompletion as shown
in the tutorials on the RoR website in the windows or linux environment.
If not do any one has sharable macros that comes with textpad or any
other editors.
Silvy Mathews
2009 Mar 18
0
search across models
Hi all,
I am trying to implement the search across models.
But i could not able to do this.
let me tell you my application details:
i have tables like:
1)containerformats :
contains the streamnames
2)transportstreams :
have how many programs are there in each stream of
containerformattable
and has containerformat_id as one column
3)programs:
have how many video and audio streams are there in
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
I have implemented Devise for Authentication and Authorization in ROR
application everything seems fine but getting one issue. I have two
modals "Account" and "Transactiona" , and so two controllers
respectively.
My Transaction Index view call one of Account Controller method like
this
2006 Apr 13
0
How to display model data along with the images from the file store
I have a controller that is similar to the one below. But how do I use the
send_file method inside the controller so that I can display images as well
as display the text.
For example, if my controller name is called images and I am displaying all
the attributes about the image like artist name, song title and wanted to
use their band picture also in the same controller?
2006 Jan 03
0
PDF Form Reader
Hi All,
Are there any utilities for reading the forms fields in PDF using Ruby?
Thanks,
Silvy Mathews
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
can you share the code so that others can benefit out of it???
silvy mathews
________________________________
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of sekhar
Sent: Thursday, January 05, 2006 7:14 AM
To: rails@lists.rubyonrails.org
Subject: [Rails] I found a way to dynamically switch languages in your
railsapp -- look at it and give
2005 Dec 19
0
Pre-selecting options_from_collection_for_select Options
I''m trying to use options_from_collection_for_select to generate options
for a multiple select:
<select id="metro_area_states" name="states[]" size="10"
multiple="multiple">
<%= options_from_collection_for_select State.find(:all), :id, :name,
@metro_area.states %>
</select>
When selecting values for the first time, it works
2011 May 17
0
Select not maintaining state on nested form with
I am using nested forms with multiple instances of various of the forms. The
problem I cant figure out is how to maintain state for the select between
postbacks. I am using ''options_from_collection_for_select'' and in this the
last param is to be the selected value, but given the dynamic nature, the
value is going to depend on the iteration of the form builder. If I manually
force
2006 Jul 15
3
How bad is it to have 7 joins in my find_by_sql?
My question is whether there''s a more idiomatic rails way of
structuring this query or of redoing the underlying models. First,
the ugly find_by_sql code, which is the method to generate an atom feed:
def atom
items_per_feed = 15
sql_query = "SELECT activities.*, users.real_name AS real_name,
accounts.last_scraped_at AS last_scraped_at,
2009 Oct 19
1
Combobox population by means of JQuery and Ajax.
This is the view municipalities.js.erb I have:
<% list_opt = options_from_collection_for_select(@municipalities, :id,
:name) %>
<% puts list_opt %> #ok! list_opt contains the options
$(''#municipality_id'').html(''<%= list_opt %>'');
and this is the combobox in the view:
...
Comune <select id="event_municipality_id"