Displaying 20 results from an estimated 10000 matches similar to: "form_for redirect to another controller"
2011 May 04
1
is not allowed as an instance variable name error
Hey all,
I get error like this:
ActionView::TemplateError
(`@content_for_details_view_builder__-626960428'' is not allowed as an
instance variable name) in app/views/shared/_details_view.haml:
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:75:in
`fields_for''
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:64:in
`form_for''
2010 Feb 28
13
Any training institutes for RoR in India?
Hello friends,
Are there any good training institutes for RoR in India ?? Would be of
great help.
Thank you
--
Posted via http://www.ruby-forum.com/.
--
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
2007 Jul 31
1
form_for - over riding the controller that generates the form
Hello,
I am trying to install my login and search forms as default parts of
the layout. This is the code I am using:
<% form_for :user, :url => {:action => ''authenticate''} do |f| %>
<p>Username:<br /><%= f.text_field :username, :size => 30 %></p>
<p>Password:<br /><%= f.password_field :password, :size => 30
2010 May 16
3
searchlogic
Hey
The guys at the searchlogic google groups seem to be asleep -.-
They didnt'' grant me permission to post yet.
But anyways, right now, I followed the searchlogic tutorial found here
-http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-
and-searching-with-searchlogic/
however, in that tutorial, the results of the find displays all my
items, before i even search for
2010 Aug 23
3
Unable to upload images using native rails file upload
I am a rails newbie and am trying to build my first app. I have a jobs
and categories controller and models respectively.
CONTROLLER:
def new
@job = Job.new
@catergory = Catergory.all
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @job }
end
end
#THIS IS A group of 10 RADIO_BUTTONS TO SELECT A CATEGORY FROM. BY
DEFAULT THE FIRST
2010 Aug 20
5
country state city drop down list rails
hi every one
please tell me the recommended way to get country
state city drop down list in rails
any gem - plug-in tutorial
thanks in advance.
--
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
2010 Jun 07
3
Model validation giving problem
Hi,
I have a member registration form which takes a "Name", "Login",
"Password", "Confirm Password" and "Location". In the user model I have
added the validation
validate_uniqueness_of :login, validate_presence_of :password, :name,
:confirm_password.
When the member tries to register every thing working fine. I am using
same form for user to edit
2010 Mar 06
1
searchlogic is_any needs to be switched to equals_any
Does "is_any" has a bug in searchlogic? "is_any" used to work fine
for me. All of a sudden now, for unknown reasons, when I write for
example :attribute_is_any => [1] , the sql output is "where
attribute != 1" which is the opposite of what I want of course.
Curiously, the problem only occurs when running with a web server
(mongrel). I see the problem in the
2010 May 23
1
[Rails 3] Trouble with named routes and form_for
Hi guys,
I''m having trouble getting named routes and form_for to play nicely in quite the way I would expect. Here''s a quick summary of what I''ve got going on:
Named route:
resources :thread, :class_name => "forum_thread"
Controller name:
forum_thread_controller
Model object:
forum_thread
In both my new and edit actions I''m setting up an
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 Dec 28
1
Nested resources form_for problem
Hi,
I have a resource map like this:
map.resources :users do |user|
user.resource :sreg10record
end
So a User is supposed to have (at most) one Sreg10record. The problem
is in the views. I tried following this tutorial:
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
which proposes something like:
<% form_for( [@user, @sreg10record] ) do |f|
2006 Apr 25
7
undefined method form_for ?
Seems the only issues I ever have with Rails are these bizarre fiddly
little things that make no sense.
Can''t for the life of me understand why I''m getting undefined method on
form_for in a view?
And it''s actually part of the acts_as_authenticated plugin that''s doing
it. But how can it not know about form_for?
--
Posted via http://www.ruby-forum.com/.
2008 Jun 12
8
Urgent Help Required!!!!!!!!!!!
Hi All,
I am Rajeev. I have download centOS 5.1 i386 files for installing Linux. I tried my ways but my DVD is not getting recognised while booting. I have windows XP SP2 32-bit. Let me know the files that need to be burned for installing centOS 5.1 i386.
Queries :
1. Whether I need to burn the files in CD or DVD?
2. I have download 9 iso files, 3 torrent
2006 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app.
I''m running into issues with forms however. If I use form_for the output of
the form gets swallowed. For example:
form_for :article, @article do |f|
f.text_field :title
f.check_box :published
f.text_area :description
f.text_field :pub_date
f.text_area :content
end
gets rendered as an empty form
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
2009 Jul 01
1
form_for resources with :singular specified
I fully suspect that I''m missing the point here somewhere so I promise
I won''t be offended if you tell me I''m being daft.
My application rents equipment ... not equipments. So I have the
following:
map.resources :equipment, :singular => :equipment_instance
class Equipment < ActiveRecord::Base
class EquipmentController < ApplicationController
The
2010 Mar 08
3
RoR Developer Needed For Long Term Project [Jobs]
We are currently seeking a very experienced Ruby on Rails developer to
complete our Rails development; a social networking platform for
businesses and their customers. The project is 90%-95% complete, but
we need someone (or some company) to complete it and provide the
ongoing support and long term development that will be needed. The
system currently also includes a product shopping cart system
2010 Nov 01
2
form_for .label class
Hi,
Could anyone tell me what I''m doing wrong below when trying to apply a
style to the following label and text field
<div class="group">
<%= f.label :name, :html => {:class => "label"} %>
<%= f.text_field :name, :html => {:class => "label"} %>
</div>
Doesn''t work at all, the form however picks
2009 Aug 04
6
form_for
hi everybody...
I have a form_for in that, onclicking submit button i am calling
a javascript for validation.If validation fails that form_for doesnt do
anything.But even the validation fails it goes to the controller and
action.
here my code:
<%form_for :promotion_code,
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