Displaying 20 results from an estimated 2000 matches similar to: "BEST WAY TO DEVELOP DYNAMIC DROPDOWNS"
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
Hi,
I have an advance search page and its code is as follows -
I have written my code like this
<div class="container">
<%= form_tag search_index_path, method: :get do %>
<%= radio_button_tag ''user_type'', ''customer'' %><p>Customer</p>
<%= radio_button_tag ''user_type'',
2008 Nov 12
2
Using Active Resource in ROR Application
Hi all,
I want to use Active Resource to communicate with other application.
How can i use Active Resource in my ROR application.
anyone knows please help me out.
Thanks and regards,
Shripad
--~--~---------~--~----~------------~-------~--~----~
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 Jan 28
2
dynamic drop downs for product search
Hey Everyone,
I''m about to embark on having a search function for the products on my
app via dynamic dropdowns. A dropdown for make would only leave
AVAILABLE models of that make. selecting year would only leave
available makes from that year etc etc.
Any suggestions or good read ups ?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to
this Railscast:
http://railscasts.com/episodes/74-complex-forms-part-2
but I''m getting this error after I submit. Any ideas?
undefined method `each'' for "":String
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2012 Sep 26
2
Online Chat application in Rails 3.1.3
Hi all,
How to create *Online Chat application* in Rails 3.1.3 and Ruby 1.9.3
Could any one please tell me the steps or any sample application..Please
Kingston.s
--
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
2011 Nov 24
4
How to upgrade rails 2 application to rails 3?
I developed a rails application using rails 2.3.8 version but now how to
upgrade this application in rails 3.0 version.
--
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
2011 Jul 11
39
Help filling out a registration (I think it's called multi tenant)
Do you know when you are filling out a registration for a new account, and
you keep pressing next to fill the rest of the information in separate
pages?
I''d like to do that, but I have no idea how.
Basically I have a company model with its information, and a contacts model,
with belongs to my company (also each company has only one contact), and I''d
like for the user to fill in
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody,
I''ve installed Authlogic on Rails 3 following the Railscast (http://
railscasts.com/episodes/160-authlogic), and the resources I was able
to find on the web, but I''m facing a problem.
Once I''ve generated the user_sessions controller and mapped the login
and logout routes, I get an error if I try to load the login page :
uninitialized constant
2010 Sep 08
5
Adding a selected checkbox to a new nested model without polluting the model
Context:
I have a GoodsReturn model with many ReturnedItem. For the new view, I
create a new GoodsReturn with many new ReturnedItems from a sale (and
its SoldItems).
Problem:
I want to have a Add/Selected checkbox with which the user can pick
the items he wants to return. I know I could use a ''selected'' virtual
attribute but I don''t want to pollute my model just for
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes.
I''ve got a profile and a service model, both related with
has_and_belongs_to_many.
The problem is that i can insert new data in the profiles_services
table, however, i cant delete already existing data.
What could be the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message
2012 Oct 19
1
Globalize3 gem, upload data from CSV
Rails 3.1.3
Globalize3 latest
I am not sure if I can ask this question here in general Rails forum.
But I''ll try.
Currently I am using a gem, Globalize3, which is useful for model I18n.
https://github.com/svenfuchs/globalize3
Say, I have a model City, having only one column, name.
City names appear differently depending on the language, so perhaps this
particular gem is useful.
2010 Feb 06
1
accepts_nested_attributes_for with has_many => :through
I have two models, links and tags, associated through a 3rd model,
link_tags. I added the following to my link model,
has_many :tags, :through => :link_tags
has_many :link_tags
accepts_nested_attributes_for :tags, :allow_destroy => :false,
:reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } }
and put this in a partial called by the new and edit forms for links,
2011 Mar 10
4
Multi-model forms
Hi guys, I''m new to ruby and rails and I''m working on multi model
forms, specifically 3. I''m using this http://guides.rubyonrails.org/getting_started.html
as a start, and its got a 2 Model example but I cant seem to get the
last one working.
These are my models:
Country name:string code:string (has_one :address)
Address address_line1:string
2012 Sep 01
4
Basic Paypal
Hi all i am following this like for basic paypal
http://railscasts.com/episodes/141-paypal-basics
and i got this error
View:
<%= link_to "Checkout", @cart.paypal_url() %>
undefined method `paypal_url'' for nil:NilClass
despite i have this code in my model called Card
Cart Model:
class Cart < ActiveRecord::Base
def paypal_url(return_url)
values = {
2009 Feb 19
5
creating virtual hosts with Mongrel?
Does anyone know how to use Mongrel to create virtual hosts? My
production site will have all kinds of domains pointing to it, and I
also need to figure out how to do subdomains. Rails should react to
the host name, doing a lookup based on the name and pull different
records from the database based on this.
For example, I''d like www.mysite.com to point back to 127.0.0.1:3000,
and the
2012 Jul 03
1
View with Variable Number of Fields
I''m a relative n00b when it comes to Rails. I''ve gone through Michael
Hartl''s tutorials (both editions, books and screencasts) and I can build a
basic CRUD web app without help. However, for a personal project I''m
working on, I''m lost as to how to move forward. Here''s the situation ...
I have a model called Project with two fields,
2011 Aug 04
1
Creating form for associated has_many model
This example shows how to create a form for an associated model
''Comment'', where ''Comment'' belongs_to ''Post'' and ''Post has_many
''Comments''.
http://edgeguides.rubyonrails.org/getting_started.html#generating-a-controller
How might I modify that to display all the comments in the form, and
still have it call the
2008 Dec 19
5
paperclip
anyone can help me to use paperclip plugins..I have a problem using it.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from
2011 Nov 12
3
complex form with dynamic fields.
I''ve seen http://railscasts.com/episodes/73-complex-forms-part-1,
part2 and part3.
It seems to be my case.
I have:
Company
has_many :documents
has_many :tenders, :through..........
and
Document
belongs_to :company
Tender
has_many :companies, :through..........
I want to insert documents and tenerds on company creation.
If documents are more than one the user can click "add
2008 Oct 09
2
has_many validation the Rails way
Okay, this is something I run into a lot and don''t really have a great
solution. Here is a simple example:
class Blog < ActiveRecord::Base
has_many :posts
validates_presence_of :name
end
class Post < ActiveRecord::Base
belongs_to :blog
validates_presence_of :name
validates_presence_of :blog_id
end
Now, if I want to create a blog and post at the same time I