similar to: database table row creation method

Displaying 20 results from an estimated 3000 matches similar to: "database table row creation method"

2010 Jan 22
0
dynamic select menu doesn't work for 'form_tag'
Hi everyone, I have tried with the dynamic menu using "http://railscasts.com/episodes/88-dynamic-select-menus " site. i implemented and it was working fine for ''form_for'' tag. But i need to do the same function with ''form_tag'' as like as, <% javascript ''dynamic_states'' %> <%form_tag do%> <p> <label
2011 May 05
1
Array params in form_tag
Hello i have a lot of time trying to figure this out. I am having problem sending array params with form_tag :remote=>true form.erb <%#= form_tag reporte_client_reports_path do%> <%= form_tag reporte_client_reports_path,:remote=>true do%> <p> <%= label_tag :cuts %> <%= select_tag "cuts[]", options_from_collection_for_select(@cuts,
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 26
1
Help with ruby=>html
Hi! I''m new to ruby and rails and got problems with using basic methods like form_tag or link_to etc to create what i need, i.e. to specify css class or id or name of html elements. I have problem with understanding rails api (it''s just as an example): form_tag(url_for_options = {}, options = {}, *parameters_for_url) what parameters can i pass to form_tag? How to specify
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
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 Oct 13
2
form_for() and name
how can i give name attributes for form_for(), so it will give an output like <form name="f">. it is because that i need to access the form name for javascript manipulation. as far as i know, name can only used in form_tag(), but i currently have more than 50 forms that built using form_for(). the structure is like this: <% form_for symbol, item, :url => { :action
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
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
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
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
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
2011 Jul 01
0
trouble with rails-ckeditor gem "form_tag"
Hi All, I am trying to use the rails-ckeditor gem and running into some problems. It is working fine for FORM_FOR but when implimenting on FORM_TAG, it giving errot "undefined method `ckeditor_textarea_tag'' for #<#<Class:0x9180348>:0x917e848>". My view field is <%= ckeditor_textarea_tag :msg, :toolbar=>''Full'', :width =>
2008 Mar 16
1
form_for error
Hi all, I have the following code in my application layout: <div id="utility"> <% if logged_in? %> <%= link_to "Sign Out", logout_path %> <% else %> <%= link_to_function "Sign in", "$(''signin'').toggle();$(''signin_link'').toggle()", :id => "signin_link" %>
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 =>
2011 Mar 08
1
form_tag for search bar with Rails 3.0.5
I have a controller and view that should be providing a search bar that brings up that brings up a selected record on submission. I have tried several variations, including just specifying the assets_path, but usually end up with either an error or a submission to the index action, rather than the show action. Currently, I have the following in my index.html.haml: = form_tag({:controller =>
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 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?