Displaying 20 results from an estimated 4000 matches similar to: "ugly url form_tag"
2007 Jan 18
7
form_tag broken in Rails 1.2 RC2 or is it me?
I''m using Rails 1.2 RC2 and I''ve got a view that uses form_tag and the
form is not being rendered. It''s just not there. My view is this:
<div class="box">
<fieldset>
<legend>Log in</legend>
<% form_tag do %>
<div class="row">
<div class="formfield">
<label
2006 Dec 11
5
using form_tag with a get request with params
I''m trying to create a search field using the form_tag helper. The
problem is when I enter a search, the url_for returns an address such as
host.com/search?term=foo. I want to use the format
host.com/search/term. I have it set up in routes to recognize the
format search/:term, but form_tag always uses the format
host.com/search?term=foo. Does anybody know how to do this?
Cheers!
Ray
2008 Feb 04
2
attachment_fu and form_tag for multiple models?
hi, i''ve got a page where i''m trying to save the user''s profile
information and an image of the user, but i''m having trouble with using
attachment_fu and the form_tag method.
now i know attachment_fu isn''t designed for form_tag but am really
hoping someone has a solution for this as frankly i''m stumped.
here''s the form_tag part in
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
Hi all,
How can i use form_remote_tag inside the form_tag helper .
My application has following view subscribe.html.haml
- form_tag :action => :subscribe do
/other form element
%input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"}
%input{:type=>''radio'',
2006 Feb 17
2
form_tag with protocol => ''https'' help
Hi,
I am not having much luck using the form_tag with a protocol. I try
the following in my view: index.rhtml
<%= form_tag({:controller => ''home'',:action => ''login'',:protocol =>
''https''},{:method => ''post''}) %>
hoping it would generate
<form action=''https://myhost.com/home/login''
2010 Oct 20
2
form_tag not working correctly?
So I''m trying to make
<form action=''/path'' method=''get'' class=''ajax_box''>
using:
<% form_tag :action => "search_for", {:method => :get, :class =>
''ajax_box''} do %>
but I get:
<form action=''/path?method=get&class=''ajax_box''
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
2010 Oct 25
2
form_tag with remote=>true Error during failsafe response:
I am trying to find out why form_tag with remote => true is not
sending an ajax response and only sending HTML. I have started a basic
Rails App with two pages and am following the Railscast 205 UJS
example. Every time I include:-
<%= form_tag homepages_path, :method => ''get'', remote => true do %>
I get from the server(WEBrick):- (Ruby 1.9.2 and Rails 3)
A 500
2007 Feb 13
1
form_tag only useful for pages with a single form?
Howdy, I''m new to rails and I''m learning form Agile Web Dev with Rails.
It seems all of the examples that use form_tag use it in situations
where the action first creates a new object before doing a
request.post...
If I''m in a situation where I''m managing Roles, Rights, and assignments
of rights to roles, I may want to have one little form with a text field
and
2006 Dec 07
6
form_tag not producing output
I''ve got two servers, both with Rails 1.1.6 on them. I''m trying to
remove some of the newly-deprecated stuff in my app, and I''ve run into
a problem. My login page used to look like this:
<div title="Account login" id="loginform" class="form">
<h1>Please Sign In</h1>
<%= start_form_tag :action =>
2008 Jan 14
5
Only "form_tag" support uploading file?
Hi, there:
I wanna use plug-in "file_column" to upload image to the server. In
my test app, the view is as follow & it works well:
====================
<h1>New entry</h1>
<%= error_messages_for ''entry'' %>
<% form_tag ''create'', :multipart => true do -%>
<p><label
2009 Mar 09
2
form_tag error: only get requests allowed
I am getting above error while updating an item using form_tag helper.
<h1>Edit Topic Item</h1>
<% form_tag edit_topic_item_path(@item.topic, @item), :html => { :method
=> :put} do %>
<%= render :partial => ''item_form'', :object => @item %>
<%= submit_tag ''Save'' %>
<% end %>
<%= link_to ''Add
2009 Mar 05
1
error_messages with form_tag
Hi
Am facing a problem in accessing the error_messages.
Actually am using form_tag is there any way with which i can access
error_messages with form_tag.
I don''t want to use form_for.
Thanks in Advancve
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello,
Is there a way to set the html element id for the form_tag and
form_remote_tag on the server side?
I want to have this resultant html...
<form id=''something'' ...
...
</form>
Thank you,
Brian Takita
2008 Oct 15
2
Adding an id to form_tag
Hi all,
When using form_for it is easy to add an id to the form using :html =>
{:id => ''someid''}
However, how would one accomplish the same when using the form_tag ?
Thank you in advance,
Schalk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
2006 Mar 04
4
Submitting data to two different tables with two different models
I''m very new to Rails. I''ve been reading Agile Web Dev for a while and read
up on ruby, but I''m still learning.
I designed a website for someone for an engineering shop. New projects had
to be added manually.
Well, I figured this would be a great canidate for railifying! I have the
form working perfectly, you can add your data and get it in a table, and
listing
2012 Nov 29
2
[Rails 3.2] form_tag w :remote => true doesn't fire up the js format
I have a form_tag written like this :
= form_tag search_backoffice_places_path, {:remote =>"true", :id =>
:searchplaceForm } do
.. input fields
= submit_tag t(:search)
generated html is correct :
<form accept-charset="UTF-8" action="/en/backoffice/places/search"
data-remote="true" id="searchplaceForm" method="post">
...
2006 Jun 07
2
Specifying a Form name using start_/form_tag
Hey all.
I''m trying use the form tag(s) to create a named / id''d form. I.e.,
I need to use JS to access the form via the DOM and submit it -
support for a reusable navigation component which will persist app
state on each jump.
However, from reading the form_tag APIs and searching google, I don''t
see where either :name or :id is an option which can be passed
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails.
form_tag verifications_path(@user), :method => :post do
verifications_path(@user) returns a string like "/users/3/
verifications". That eventually gets sent to url_for, which expects a
hash. And then it blows up.
It''s especially disconcerting since the documentation shows form_tag
as
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There,
I''m trying to user fields_for inside a form_tag, but i can''t catch it
on my controller.
I just take some html code off to makes it easy to read
my view...
i''m using campuses_path(current_church, @campus) instead form_for
@campus, because my route is like
resources :campuses, :path => ":church/campuses"
<%= form_tag