Displaying 20 results from an estimated 1000 matches similar to: "Still struggling with data flow ..."
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the
views with tons of <% %> ?
Like this
<%= start_form_tag() %>
<%= text_field_tag(''category[title]'', category.title, {:size => 20,
:maxlength => 128}) %>
<% if not category.parent_id.nil? %>
<%= select("category", "parent_id",
Category.find(:all,
2001 Dec 10
1
Error on start
r-devel from this morning says
hothorn@www:~ > R
R : Copyright 2001, The R Development Core Team
Version 1.4.0 Under development (unstable) (2001-12-09)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type icense()' or icence()' for distribution details.
R is a collaborative project with many contributors.
Type
2006 Aug 15
1
Question on start_form_tag and get post method
Hi all,
I have a simple question about start_form_tag. It default generates
method=post. I was wondering how you could use start_form_tag to generate
method=get. Probably a simple question but one I can''t answer with the API
doc.
Thanks in advance,
Onno
2006 Aug 06
6
View passing empty or no value to controller -- help
Hi,
I have the following view:
<%= start_form_tag ( { :action => ''find'' }, :method => ''get'') %>
<p>
<%= text_field_tag :lemma, params[:lemma] %>
</p>
<%= link_to "Find It", :class => "submit" %>
<%= end_form_tag %>
And the following find action in the controller:
2011 Mar 25
0
Bounding ellipse for any set of points
After a lot of effort I developed the following function to compute the
bounding ellipse (also known a as minimum volume enclosing ellipsoid) for
any set of points. This script is limited to two dimensions, but I believe
with minor modification the algorithm should work for 3 or more dimensions.
It seems to work well (although I don't know if can be optimized to run
faster) and
2005 Jan 31
1
[patch] add "--ignore" option
Hi,
The patch below adds a "--ignore" option to rsync, which means
"--exclude-but-dont-delete-even-if-we-specified--delete-excluded".
I need this for a few tasks, the simplest of which is to have rsync resist
trying to delete NetApp filers' ".snapshot" directories.
The change is fairly simple (the boolean filter returns become tri-state),
and works for me both
2011 Jul 21
0
Bounding ellipse for any set of points
The mvee() function is intended to be released under the BSD license.
Copyright (c) 2009, Nima Moshtagh
Copyright (c) 2011, Andy Lyons
All rights reserved.
http://www.opensource.org/licenses/bsd-license.php
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must
2023 May 12
2
[PATCH vhost v8 01/12] virtio_ring: split: separate dma codes
As said before, please don't try to do weird runtime checks based
on the scatterlist. What you have works for now, but there are
plans to repalce the page + offset tuple in the scatterlist with
just a phys_addr_t. And with that your "clever" scheme will break
instantly.
2006 Jun 16
3
ActiveRecord, using sql functions for some attributes
Hi.
I need to use functions INET_ATON, INET_NTOA for IP address retrieving.
Is it possible to make this transparently (without custom SQL for
saving, updating and retrieving)?
2006 Apr 06
6
select method
The documentation states as an example:
select("post", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] },
{ :include_blank => true }) could become:
<select name="post[person_id]">
<option></option>
<option value="1" selected="selected">David</option>
<option
2006 Jul 05
3
splitting a story with double-spaced para''s
Quick question - if i want to separate a long string of text, separated
by single carriage returns, into an array of paragraphs, I can use the
following code:
paragraphs = article.content.split("\n")
The "\n" means a carriage return, as far as I can tell.
If I wanted to take text, that had been written using the more common
double carriage returns, into an array of
2006 Jul 06
1
Problem implementing password and password confirmation
Hi,
I''m trying to implement password confirmation, based on the Agile
example, but just can''t make any progress.
User DB has these fields:
=========================
t.column :name, :string, :limit => 40
t.column :hashed_password, :string
t.column :salt, :string
User model has:
===============
attr_accessor :password_confirmation
2006 Apr 06
2
using select() to relate tables
I''m sorry to be asking trivial questions, but I''m new to RoR and am
hooked :), so I''m very impatient to get things up and running.
given two related tables, "pcs" and "venues" (venues have many PC''s and
each PC belongs to one venue only) I can use a select() to present venue
names in the "new PC" form along with other PC details to
2006 Apr 11
26
Firefox won''t let me send ''&'' with AJAX!
Hi everyone,
I''ve encountered a HUGE problem, which may not be RoR-oriented, but
there might be a workaround somehow.
See, at this moment, I''m unable to send AJAX requests back and forth
when the information contains an ampersand (''&''). In essence, request is
never completed. The odd thing is that it only happens with Firefox (IE
and Opera works fine).
2006 Jul 05
1
time.next_week bug?
i ran into an error today when dealing with the method next_week and
daylight savings time...
>> Time.local( 2006,10,23 ).next_week
=> Tue Oct 24 00:00:00 EDT 2006
Any one know if this is a know issue or should a ticket be created for this
issue?
thanks for the help
mark
--
Mark Van Holstyn
mvette13@gmail.com
http://lotswholetime.com
-------------- next part --------------
An HTML
2006 May 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag
2006 Jun 27
3
start_form_tag question..
i am trying to get a start_form_tag working, but i am shooting blanks..
here''s what i am trying to do..
i have a controller called "forms.." with an action "new_entry"..
it is called by:
localhost/forms/new_entry
this is just a quick form to test another action..
that action is:
localhost/logger
my question is, how do i construct start form tag in order to
2006 Mar 07
6
form_tag - directing to new target window
How do I use...
<%= link_to "All Facilities", :action => ''fac_log_all'' %>
if I add :target => "_new" that is just a parameter and not a
directive.
I just want reports to print into a separate window. How do I do that?
It''s not clear at all to me
Craig
2006 Jan 19
9
start_form_tag not taking url_for options
I''ve got a form that should post to user/login. The code to start the tag is:
<%= start_form_tag { :controller => "user", :action => "login" } %>
That gives me this exception:
compile error
script/../config/../app/views/user/login.rhtml:1: parse error,
unexpected tASSOC, expecting ''}''
_erbout = ''''; _erbout.concat((
2006 May 04
4
form post not working
Hi there,
I have this form code in a view:
<%= start_form_tag :action => "listByArtist", :id => artist.id %>
<p><b>List by Artist:</b>
<select id="artist_id" name="artists[id]">
<%= options_from_collection_for_select(@artists, "id", "name") %>
</select>
<%= submit_tag "List"