Displaying 20 results from an estimated 600 matches similar to: "Re: form_for scope issue RESOLVED"
2006 Jun 02
1
form_for scope issue
Hi,
I am just ran into the problem that I cannot access helper methods from
within a form_for scope.
I do have something like the following:
<% form_for :potential_buyer, @potential_buyer, :url => { :action =>
"register" } do |f| %>
<%= render(:partial => ''register_form'', :locals => { :f => f } ) %>
<% end %>
-----
I cannot
2002 Nov 21
0
dbPowerAMP, CDex / Re: Freeware windows ogg audio CD bur ner?
There's another nice Windows program in the pipeline: Feurio 2.0
(www.feurio.de) will have OggVorbis and MonkeyAudio support.
Feurio is a all-in-one solution for CD ripping/burning specialized on
audio CD.
Feurio supports high speed, high-quality on-the-fly ripping and
encoding, and on-the-fly decoding/burning, too.
Feurio supports allmost all available CD writers, and there is a
2006 Jul 17
6
Rails+Mongrel+Lighthttpd: Ruby-Sendfile Problem
Hello,
I have a working mongrel cluster and want to use Lighty as the frontend
webserver. I want ligthttpd to deliver the static content.
So I did
gem install sendfile --remote
Everything installed.
But if I run the tests like
gem check sendfile --test --debug
i get the following error message:
Exception `Errno::ENOSYS'' at ./test/test_sendfile.rb:75 - Function not
implemented -
2006 Jun 16
0
BestPractise for monitoring change of model attribute?
Hello,
searched the docs, but didn?t found an answer to this question.
What is your approach for detecting the change of a model attribute?
If the attribute changes I want to fire some action.
I could do that with callbacks like after_save, but this would fire in
90% without the model attribute beeing changed.
Any hints are welcome!
Feurio
--
Posted via http://www.ruby-forum.com/.
2006 May 25
5
Weird Capistrano problem
I''m having problems launching the spin process via the deploy.rb task.
Everything works great when is run the script manually via:
% ssh admin@monterey.example.net /Web/Rails/Example/current/script/spin
However, when I run ''cap spinner'' or ''rake remote:exec ACTION=spinner'',
I get the following errors:
% cap spinner
loading configuration
1999 Mar 21
0
USENIX Annual Conference, June 6-11, Monterey, Calif
You'll get the why as well as the how-to in advanced systems and software
at this renown conference for system administrators, developers, and
researchers-
24th Annual USENIX TECHNICAL CONFERENCE
June 6-11, 1999
Monterey, California
Includes FREENIX track devoted to open source software
-----------------------------------------------------------------
Review the program and register
2005 May 19
1
Re: pronunciation? -- loving CentOS doesn't mean you have to bash Red Hat
From: Martyn Drake <martyn at drake.org.uk>
> To be quite honest with you - that's been and gone so quickly I can't
> ever remember what my position was at that time.
It actually happened over the span of 2 years before any name change.
With the introduction of RHEL as a separate product, RHL was having an
identity crisis. It used to be that ".2" was the
2006 Jul 09
0
RailsConf Europe, Sept. 14-15: don''t put it off!
Hi everyone --
In the excitement of the Chicago RailsConf and other recent events,
don''t forget the excitement of RailsConf Europe!
You''ve heard of it, but it seems kind of shadowy compared to the "big"
events?
Here''s the news:
>>>>>>>>>>>>>>>> It IS a big event!
2006 Aug 05
1
form_for and partials
I''m getting an error in the partial when i try
<% form_for :name do |form| %>
<%= render_partial "#{@current_stage}" %>
<% end %>
So I assume that form_for does not have scope in the partial?
If that is the case what are my solutions...
Do I have to stick a <% form_for in every partial, or do i just change all
my inputs back to text_field
2006 Aug 11
2
Accessing belongs_to objects from a form_for context
In a form_for context, is there a way to access objects that are related
to the primary object with a belongs_to? I think an example will serve
best:
class User < ActiveRecord::Base
belongs_to :person
attr_accessor :username
end
class Person < ActiveRecord::Base
has_one :user
attr_accessor :first_name
end
<% form_for :user do |form| %>
<%= form.text_field
2006 Jul 11
0
Arbitrary elements in form_for?
I would like to use form_for in my project so that I can easily change
the style of many forms at once. However, it seems to me like
FormBuilders only support certain kinds of form elements(!). Surely
there must be a way to add arbitrary labels/form elements to a form.
Let''s say I had a form that looks like:
ID: (plain-text label)
Name: (text field)
Birthdate: (date chooser)
Picture:
2006 May 14
0
form_for and Multipart - Syntax?
I am trying to get into the habit of using form_for in my new applications
but I can''t seem to figure out how to get it to make my form use multipart
encoding.
I''ve tried adding :multipart => true in various spots to no avail. The
source reads like Greek to me. Can someone help out with the correct syntax,
it''s not in the doco.
Thanks.
2006 Apr 15
0
form_for, partials, and rjs
Hi there!
Im trying to use rjs templates to add form fields to an existing form.
So for example a user could fill out a form and optionally hit a
link_to_remote and get another set of identical fields to fill before
sending. This would mean he/she could add ex. more than one record in
the same form.
The original form was rendered with form_for and using a partial:
<% form_for :example,
2007 Feb 07
2
form_for onsubmit
Is there a reason I can''t find any information on using the onsubmit
attribute with form_for? I''d hate to *gasp* hardcode the form tag in.
chad
--~--~---------~--~----~------------~-------~--~----~
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
2010 Feb 10
1
namespace + nested resources = <% form_for ... %> problem
Hello all
I wrote a gist, which describes my problem: http://gist.github.com/300860
What param I need to pass to form_for? Thanks
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2007 Apr 13
1
How can I use aggregation objects in form_for?
Say I have a person object which has a aggregation object call
address. The the code to manipulate a form for create a new person
should be:
# new.rhtml
<% form_for :person, :url => {:action => ''create''} do |f| %>
<%= render :partial => ''form'', :locals => {:f => form} %>
<%= submit_tag "Create" %>
<% end %>
2009 Nov 27
0
Trying to use form_for or fields_for to get one record for display
The reason I''m doing this is that the app is for a foodbank, and I''m
trying to use a model as an attendance list. The model will have a
date field, with a new record for each month. I need to display only
the record for the current month, as way to safeguard against someone
visiting too often. I''d like to use checkboxes for when a person
attended this month, which is the
2010 Mar 24
0
form_for with nested shallow route
Let''s say I have:
map.resources :teams do |team|
team.resources :squads, :shallow => true
end
When I want to generate a form_for a squad, I need both the team and
squad for new/create, but only the squad for edit.
This means I need:
edit:
form_for(squad)
new:
form_for([team, squad])
This seems not very dry. Is there a more idiomatic way of doing this?
Right now,
2008 May 12
0
Problems with form_for, STI, and polymorphic routing
I''m stumped on how to get past this. It''s Rails 2.0.2.
I have a class, Show. Using STI, I''m using that as a base class, and
have DayShow and NightShow that inherit from it.
###
class Show < ActiveRecord::Base
end
class DayShow < Show
end
###
In my shows/edit.html.erb, I have:
<% form_for(@show) do |f| %>
However, when I use it with a @show that has
2009 Nov 05
1
tabIndex not working for select or textarea in form_for
Hello all,
Maybe this is something easy to solve but I can set all my text_field
tabIndex by { :tabIndex => ''2''}. When I try to do the same for the
select or the textarea it doesn''t work. Is there something I''m missing?
Thank you.
John
--
Posted via http://www.ruby-forum.com/.