Displaying 5 results from an estimated 5 matches for "form_el".
Did you mean:
forel
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 paperclip attachment called collateral, and a double
poly...
2010 Jan 30
2
passing multiple objects with remote_function
Hey,
I can successfully pass a single object from any form field to my
controller via:
Select Year: <%= collection_select("vehicle", "year", @availableYears,
"year", "year",
{:prompt => "Select a year"},
{:onchange => "#{remote_function(:url => {:action
=>
2007 Apr 04
4
joining across databases in a find statement with include (legacy db)
Hi,
I have a legacy database ''old'' and a new database ''new'' which rails
uses. I set up models using old with establish_connection(old), and
this works well, except for include:
class OldModel < ActiveRecord::Base
establish_connection(old)
end
class NewModel < ActiveRecord::Base
has_one :old_model
end
a = OldModel.find :first
NewModel.find(:all,
2006 May 03
1
form :onblur => ''this.form.submit()'' doesn''t do AJAX
...ter an
element loses focus.
<% remote_form_for :person, @person, :url => { :action => "save" },
:update => ''form'' do |f| %>
<label for="person_fname"><span class="req">*</span>Name</label>
<div class="form_el">
<%= f.text_field :naam, :size=>50, :onblur => ''this.form.submit()'' %>
</div>
<% end %>
This doesn''t work though, it submits the form using a plain old POST.
Any ideas on how to accomplish this?
Thanks in advance,
Jeroen
2005 May 13
45
Why Wouldn't I Use Rails
I am starting a large project and still selecting what
framework to use.
Rather than ask brand x what is wrong with brand y, I am
more interested in self confession.
Why would I *not* want to use Rails (compared to Iowa and Nitro).
I posted a synopsis of the project to ruby-talk but will repost
it here if anyone wants it.
xev