Displaying 20 results from an estimated 40 matches for "remote_form_for".
2009 Mar 10
5
onsubmit for remote_form_for not working properly
I want to use onsubmit for a form validation using javascript on
remote_form_for
for this i am doing something like this
<% remote_form_for :timesheet, @timesheet, :url =>{:action =>
''report_user''}, :html => {:onsubmit=>"return ValidateDate();" } do |f|
%>
// Form elements here
<% end %>
but it not works well. if co...
2008 Sep 07
1
remote_form_for, paths, and partials
hi,
i''m having a little trouble rendering a partial that uses a
remote_form_for and is in another controller.
<%= render :partial => "reviews/new"-%>
and in the partial i have only this, inside another controller
<% remote_form_for @review do |rv|-%>
<%= rv.hidden_field :value, :value => 1 -%>
<%= rv.image_submit_tag "thumbsupnc.png&qu...
2008 Jul 01
8
redirect_to not working
Hi... I have a basic authentication system. I have a RESTful resource
called session with the following code when logging in:
def new
end
def create
user = User.authenticate(params[:username], params[:password])
respond_to do |format|
if user
session[:user_id] = user.id
flash[:notice] = "Welcome back #{user.name}!"
format.html {redirect_to
2008 Jan 03
0
remote_form_for with auto_complete_field
Hi friends
I have problem with auto_complete_field.
I have used auto_complete_field with in the remote_form_for.
But when we enter the text in auto_complete_field two actions are
calling
1. auto_complete_field action
2. remote_form_for action
I need to restrict the form action when we enter text on
auto_complete_field
Could u give any ideas?
<div id="<%=filter_criterion.dom_id%>">...
2007 Jul 12
1
remote_form_for behavior on javascript submit();
Hey all,
Tried this on the IRC channel but after an hour i figured nobody that
was on knew, so i''ll try it here. I have a rhtml page with:
<% remote_form_for(:performance_goal, :url =>
user_performance_goal_path(@user.account, @user,
@performance_goal), :html => {:id => ''sidebar_form'', :method => :put})
do |f| %>
<%= f.text_area :impact, :size => ''25x3'', :onchange =>
"this.form.submit();&...
2008 Mar 14
8
Facebooker updates
I just went through and cleaned out most of the bugs and patches. I
also added a facebooker.js file that implements enough of prototype to
do $() and link_to_remote with :update and remote_form_for with :update
Let me know if you run into any issues with it.
Mike
--
Mike Mangino
http://www.elevatedrails.com
2008 Mar 04
3
remote_form_for does not work with method = :get
It seems that remote_form_for does not work with method = :get since
it does not change the prototype call. Is this a bug?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to ru...
2007 Aug 01
1
multipart remote_form_for
I''m trying to figure out how to create an AJAXified form with
remote_form_for that can submit a file upload, to no avail. Any pointers
for me?
- donald
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/J...
2009 Mar 15
1
remote_form_for ajax validation
...en reading a lot about this, but I do not manage to do a nice
validation. I already managed to save data to the database, to
validate a field, to display a "Everything went well" message. I can
also display an error message, but the view does not end up properly.
This is the form:
<% remote_form_for(product) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %>
</p>
<p>
<%= f.label :body %><br />
<%= f.text_area :body %>
</p>
<p>
<...
2007 Jun 03
3
remote_form_for issue
Hi everybody,
I''m trying to change my current forms in my app to remote_forms. It was
my understanding that remote_form_for and form_for work in the same way,
so I just wanted to change the methods. My code looks like:
<% form_remote_for :post, :url => posts_url do |f| %>
<%= render :partial => ''form_posts'', :locals => {:f => f} %>
<%= table_submit_tag "Chercher&quo...
2013 Oct 30
3
Use of FCKEDITOR as normal text area
Hi all
I am trying to use Fckeditor as text area to send mails.here is my code
<% remote_form_for :send_sms,
:before => "Element.show(''loader'')",
:success => "Element.hide(''loader'')" do |sms| %>
<div id="news_content_text_field_bg">
<%= fckeditor_textarea :send_sms, :message,:lang => I18n.loc...
2009 Feb 11
0
remote_form_for file_field strangeness
Does anyone see any problem with this form?
- form_remote_for(Photo.new, :html => {:multipart => true, :target
=> :uploader}) do |f|
.form_element
= f.label :photo
= f.file_field :collateral
= hidden_field_tag :container_id, @shoot.id
= hidden_field_tag :container_type, @shoot.class.name
.form_element
= f.submit ''Add Photos''
The photo has a
2009 Jan 18
2
InvalidAuthenticityToken error with remote_form_for
Hi All -
I have a form_for that I''m trying to convert to remote_form_for, and I
keep get this error:
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request_forgery_protection.rb:86:in
`verify_authenticity_token''
/usr/lib/ruby/gems/1.8/gems/activ...
2006 Jul 14
9
DRY Javascript Degredation
Hi,
It seems there must be a better way to do this than what I am
currently doing.
I have a simple app that collects a users thoughts along with their
email address and their first an last name. On a page that lists all
the users thoughts they can click on a link to "add a thought" which
then displays a form with ajax. My current methodology for this is
not very dry. If js is
2008 Jan 11
1
Remote form for, Form.serialize and parameter arrays
...e and it results in parameters like:
{"some_attributes"=>[{"title"=>"first_title", "text" => "text1"},
{"title"=>"second_title", "text"=>"text2"}]}
However whenever I submit the same form with remote_form_for then it
generates the following array:
{"some_attributes"=>[{"title"=>"first_title"},
{"title"=>"second_title"}, {"text"=>"text1"}, {"text"=>"text2"}]}
Anyone know of a way to fix this so the...
2010 Jul 27
7
trouble with remote_form_for & html_update
I have a form that accepts comments and adds them to a list without
refreshing the page.
This is the html:
<div id=''aremark''>
<%= render :partial => ''comment'' %>
</div>
<% remote_form_for :comment, :url=>story_comments_path(@story), :html
=> { :id => ''comment'' } do |form| %>
<h5><label for="login">Make a comment:</label></h5>
<div id="body"><%= form.text_field :body %></div>...
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
I cannot work out why this error is appearing.
ActionView::TemplateError (can''t convert ActiveRecord::Error into
String) on line #3 of app/views/button/_show_enquiry.html.erb:
1: <h1>Send us a message</h1>
2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do |
f| %>
3: <%= error_messages_for ''enquiry'', :header_message => "Please try
again!", :message => "We need you to change some items in order to
send us a message:" %>
4: <...
2006 Aug 19
1
acts_as_commentable
Don''t think this got through last time.
Would someone mind giving me some feedback on rendering threaded
comments:
http://pastie.caboo.se/9255
2007 Jan 13
1
fieldWithErrors - does not work
What conditions must be met for ''fieldWithErrors'' automatic wrapping?
<% remote_form_for( :subscriber,
:update => ''subscription'',
:url => {:controller => ''subscribers'', :action =>
''subscribe''}
) do |form| %>
<p>
<%= form.text_field :email, options...
2009 Oct 07
1
Empty validation error messages?
Hello,
I''m have a form and the error messages are not being displayed properly
I got a remote_form_for and am trying to show errors like I always do:
<%= error_messages_for @user%>
but the output is:
4 errors prohibited this user from being saved
There were problems with the following fields:
* {{attribute}} {{message}}
* {{attribute}} {{message}}
* {{attribute}} {{message}}...