Displaying 20 results from an estimated 5000 matches similar to: "start_form_tag question.."
2006 Jun 13
9
Find DB items by "title"
I''m having trouble finding then displaying all items in my "posts" table
that match a certain search string.
I have a from field:
<%= start_form_tag :action=> "search" %>
<div title="Search" id="searchform" class="form">
<h3>Search</h3>
<%= error_messages_for ''post''
2006 Feb 21
2
start_form_tag with method GET
Hi,
How can I get start_form_tag to use GET instead of POST?
I have tried...
<%= start_form_tag {:action => ''search''}, {:method => ''get''} %>
But it doesn''t work...
compile error
./script/../config/../app/views/search/index.rhtml:35: syntax error
_erbout.concat(( start_form_tag {:action => ''search''}, {:method =>
2006 Jun 25
1
Using AND in :conditions queries
I have what amounts to a simple search engine running through a table
using input from a form. Everything works fine when looking for "title"
or "body" But, when I want to couple that with an AND statement the
search still works fine, but it seems to disregard the AND statements.
Code below:
In the view:
<%= start_form_tag :action=> "show_search" %>
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 Jun 27
4
File Column has me stumped
I have an existing entry in my DB under the "users" table that has a
column name "pic". I have a file column field when a new user signs up,
and it work great. I am now trying to give existing users the ability to
add or change their "pic". But, no matter what I do the entry comes up
blank. Here''s what I have so far:
View:
<%= start_form_tag ({:action
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 Mar 23
1
start_form_tag how to use the options parameter ?
Hello, I don''t understand how to use the options parameter of
start_form_tag
I want to have the class and id attributes of the form initialized to
"Foo"...
I suppose it''s something like
start_form_tag( :options[''class''] => ''Foo'', :options[''id''] => ''Foo'')
But I can''t figure out the
2006 Jun 12
5
Doing a simple search from the database?
I realize thi may be more complex issue than can be asnwered in this
post. But, what I need to do is create a simple query on my existing
tables via a search form. I have half my app done (I can write all the
info I want to my database), but pulling the data out dynamically is
giving me trouble.
I have both the "ruby for rails" book and the Agile Development book.
They both give
2006 Jul 12
5
start_form_tag n00b question
Hi,
I''m wondering if there is any way to specify the id of a form tag with the
start_form_tag helper. I''ve tried playing around with ", id=>"marginForm" "
and also inclosing both the action variable and id variable in curley
brackets. The Rails API doesn''t off much help for a n00b like me. It''s
probably really easy but any help you guys
2018 Nov 15
1
[PATCH v3 6/7] iommu/virtio: Add probe request
Hi Jean,
On 10/12/18 4:59 PM, Jean-Philippe Brucker wrote:
> When the device offers the probe feature, send a probe request for each
> device managed by the IOMMU. Extract RESV_MEM information. When we
> encounter a MSI doorbell region, set it up as a IOMMU_RESV_MSI region.
> This will tell other subsystems that there is no need to map the MSI
> doorbell in the virtio-iommu, because
2008 Dec 09
4
[VT-D]iommu.c:775: iommu_page_fault: iommu->reg = ffff828bfff57000
Hello,
I have been working sometime now on getting a HVM accepting a PCI card from
the host. As was said in the VT-D wiki I bought an ASUS P5E VM DO
motherboard (rel 0803) which has the VT-D option in the bios. I want to pass
a Hauppauge PVR 500 card to a virtual machine running LinuxMCE. After first
trying XEN 3.2.1 which did not enable the "VT-D virtualisation" bit in xm
dmesg, i
2006 Apr 08
2
Add id to form_tag?
Hi all,
What is the correct syntax to add an id attribute to a form tag with the
"form_tag" helper?
I''ve tried
start_form_tag({:controller => ''houses'', :action => ''find''}, {:method =>
:get, :id => ''search''})
start_form_tag({:controller => ''houses'', :action =>
2005 Dec 22
2
routes and url_for
Hi, All.
I try to relocate controllers. Admin space controlers moved to
/app/controllers/admin and user space controllers to
/app/controllers/user
In routes.rb I use
map.connect ''search'', :controller => ''user/search''
that correct I see.
But when I want to use start_form_tag or simply url_for, that used in
start_form_tag, I do not know how generate url
2006 Feb 13
2
how to find the helpers code ?
Hello,
i have the application set up on my radrails. I was looking at the view
generated by scaffold and i see a bunch of names, after looking up
internet i found that they are helpers and generate the HTML for us.
Now, i wanted to look at the helper code for start_form_tag, so that
based on that i could write some of my own helpers in my helper
classes... but i could not find the code
2009 May 20
8
ctionView::TemplateError (undefined method `start_form_tag'
I upgrade my version of ruby on rails And my SO
Free BSD was working with Ruby 1.8 + 1.2.6
and now Mandriva Linux with Ruby 1.8 + Rails 2.1.1 it''s not working
ERROR:
Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20
09:20:53) [GET]
Session ID:
BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG
2006 Jul 03
2
Still struggling with data flow ...
Hello,
The following view:
<%= start_form_tag %>
Enter term to find
<p>
<%= text_field_tag :name, params[:name] %>
</p>
<%= link_to "Find", { :action => ''find_term''} %>
<%= end_form_tag %>
does not appear to pass back the value of :name to the action:
def find_term
term =
2006 Jan 22
12
Problems with File_column
Hi,
Rails - newbie here..
I''m setting up an app and am trying to use file_column to upload a
picture with an item and I''m running into several problems.
(Background: I''m running Locomotive Rails under OS X 10.4.4, and using
Safari)
I followed the directions to add the necessary items, then found out
that I had to add the item to make the form tag be a multipart
2006 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys,
I have been working on a form that would use javascript to validate the
data before submitting it, and from my view.rhtml I have a statement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails thinks it is a parameter instead of an option, so
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 Nov 11
1
Disable foms when submitting
Hey,
I want to disable the form when an user submits, I know that u can do
this with javascript. But i dont want to put code for each form on my
website, and I have a lot of forms like..
<%= start_form_tag :action => ''create'' %>
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td