Displaying 12 results from an estimated 12 matches for "target_list".
Did you mean:
target_lists
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All,
Thanks for any help in advance.
I have what I think is a very straightforward partial template and I
can''t figure out why a text_field call within it doesn''t work.
Here is my calling template: lists.rhtml
<div id="target_lists">
<%= render(:partial => "target_lists", :collection => @target_lists)
%>
</div>
In the partial template: _target_lists.rhtml, if I have the following
code,
<%= target_lists[:id] %> <%= target_lists[:name] %><BR/>
I see the id...
2006 Mar 20
5
Wrap error_messages_for() call when no instance var present
I am trying to put some smarts around a call to
<%= error_messages_for %>
so that when I first come into this page i.e. when my instance variable
@target_list has not been defined yet, the page doesn''t break.
I''m doing this:
<% if @target_list? %>
<%= error_messages_for ''target_list'' %>
<% end %>
I get a syntax error on line 1. What is wrong with
if @target_list?
to test for the existence of the...
2006 Jul 11
4
checkboxes with a has_many :through relation
...s in a list. I want to be able to
assign to my has_many relationship using the post values of these
checkboxes. Essentially, I want to populate the relationship table
which will create the correct join values in my model.
Here is my check_box_tag code:
<%= check_box_tag("@current_job[target_list_ids][]",
tlist.DataSetID,
@current_job.target_lists.include?(tlist)) %>
So, in this example, tlist is an element of another array that I''m
starting with to give me the list of choices. But what I want is to
assign these choices into the &qu...
2006 Jul 03
4
text_field doesn''t call overridden ActiveRecord getters
All,
In a template, I have
<%= text_field :target_list, :DateReceived,
{ :title => ''uploaded_at'',
:class =>
''target_list_info'',
:disabled => ''true'' } %>...
2006 Mar 14
4
What does the send() method do on a model object?
All,
I did a scaffold for a model and I ended up with this code in
list.rhtml:
<% for column in TargetList.content_columns %>
<td><%=h target_list.send(column.name) %></td>
<% end %>
Where is the "send" method and what does it do?
I can''t find it on ActiveRecord::Base? I assume that it returns a
value based on the column id but I can''t find any documentation on it.
Thanks,
Wes
--
Posted via...
2006 Jun 27
3
belongs_to <parent name>, :foreign_key modifier not working
All,
I have two ActiveRecord objects.
TargetList has_many Targets
Targets belongs_to TargetList
I''ve specified
belongs_to :target_list,
:foreign_key => ''DataSetID''
Queries generated by various methods in target_list do not seem to see
the
foreign_key name and keep trying to query my Target table using
"target_list_id" (the default foreign key).
Anyone seen this before?
Wes
--
Poste...
2006 Jul 10
10
has_many :through and foreign key parameters
I just took my HABTM and turned it into a :through since my join table
has another "non-joiny" attribute.
I went from this:
has_many_and_belongs_to :jobs, :join_table => ''tablename'',
:foreign_key => ''x'',
:association_foreign_key => ''y''
to this:
has_many :jobs, :through =>
2006 May 25
5
rake migrate VERSION=0 doesn''t appear to execute
...:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute migrate
but my tables aren''t dropped.
Here''s my migration:
class CreateInitialSchema < ActiveRecord::Migration
def self.up
...creates a bunch of tables
end
def self.down
drop_table :target_lists
drop_table :jobs
drop_table :stylesheets
drop_table :images
drop_table :documents
end
end
Does rake migrate VERSION=0 rollback the very FIRST migration?
What am I doing wrong?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Aug 15
0
Can you use form_remote_tag to upload files?
I have the following form_remote_tag:
<%= form_remote_tag(:update => ''target_lists'',
:url => { :action => ''upload_list'' },
:html => { :multipart => true }) %>
I then submit using a regular submit tag
<%= submit_tag ''Upload List'' %>
Does the Form.serialize call that is ge...
2006 May 15
0
Routing fails for files under public without file extensions
...ver, if I add an extension onto it, then it can be retrieved.
Doesn''t matter where the file is - could be directly under public or
several directories below.
Here''s my routes.rb file:
map.connect '''', :controller => "eSimply"
map.connect ''target_lists/update/:action/:id/:data'', :controller =>
"listManagement", :data => nil
map.connect '':controller/:action/:id''
map.connect '':controller/:action/*filename''
I don''t see any problems with my routes file.
Can anyone verify that t...
2013 Oct 07
4
Feature request: FQDN Host match
Hello!
I'm hoping that Gmail won't HTML format this mail so that I'll get flamed :)
Anyway, my question relates to ssh_config. The problem I find is that
the Host pattern is only applied to the argument given on the command
line, as outlined in the man page:
"The host is the hostname argument given on the command line (i.e. the
name is not converted to a canonicalized host name
2008 Jul 14
18
[git patches] Ocfs2 and Configfs updates for 2.6.27
I'm running a bit late with the e-mail this time around, but I think that's
ok since there really isn't any major new features here - the bulk of the
Ocfs2 update is bug fixes, or cleanups. The same goes for configfs.
The only two things that could be described as features would be:
- Sunil has updated Ocfs2 to provide even more live cluster locking
information via debugfs.
- Joel