Displaying 20 results from an estimated 10000 matches similar to: "getting a value from a select list"
2005 Dec 19
1
re-selecting a select list on create
I have a select list tht is built from a "collection_select" and I want to
reselect the value the user submitted if any part of the form errors.
could someone point me in the right direction for doing this?
my select looks like this
collection_select(:company, :id, @companies, :id, :name)
I tried setting the variable @company to param[:company] but that didnt
work.
thanks
--
2006 Feb 10
4
Handling a relationship between users and newsletter subcriptions.
Hey Everyone!
I have a newsletter system that contains a multitude of different
newsletters. In this case three but the system allows the user to
add more. Every user can be subscribed to any amount of given
newsletters. So what I did was I created a user model, newsletter
model, and subscription model.
The subscription model belongs to one user and one newsletter.
However,
2006 Jun 10
2
open source newsletter software?
is anyone aware of open source newsletter software built with rails?
i am currently using dadamail, and like it, but i''d like a system
that is easily integrated with user registration, etc.
it was recommended that i try campaign monitor, which has an api
available. http://www.campaignmonitor.com/ while i like this
solution, i feel that the "per send" cost is worth
2009 Jan 15
2
collection_select not selecting default value
Hi,
I''m trying to create a dropdown using collection_select. However, I cant
seem to get it to select the right option by default.
In my controller I have a setup like this:
@content = Content.new
@content.selection_id = 3
@selections = Selection.find(:all)
In my view I have:
<% form_for :content, @content, :url => { :action => ''create'' } do |f|
%>
2008 Feb 12
8
has_many through question
I have made 3 tables
+------------+ +----------------+ +------------+
|people | |people_campaigns| |campaigns |
+------------+ +----------------+ +------------+
|id :int | <----> |people_id :int | /-> |id :int |
|name :string| |campaign_id :int| <-/ |name :string|
|etc ... | |exported :int |
2002 Nov 14
0
[LLVMdev] Bullet proof bulk email friendly hosting & cheap mass email campaigns.
We are the marketing specialists www.host4bulk.com that provide cheap
bullet proof bulk email friendly hosting for your website ($400 for
one month of bullet proof hosting) and cheap bulk email campaigns ($200
for 1 million emails sent)
As you may already know, many web hosting companies have Terms of Service
(TOS) or Acceptable Use Policies (AUP) against the delivery of emails
advertising or
2013 Sep 26
1
Queue Management
Dear All,
I have six different campaign and 5 different agent have login on that
campaign.*Same thing i have done using agi and database,i never use queue
management on this scenario. Agent** can also shuffling one campaign to
anther campaign. *
Now i want to do some work with queue.I want to use single queue to
managing this.
Eg:
campaign Agent Login
A
a_1,a_3
2023 May 26
1
command [argument ...] in ssh(1): a footgun
On Fri, 26 May 2023, Mingye Wang (Artoria2e5) wrote:
> ssh(1) currently affords an argument-passing functionality, but as the manpage
> states, all arguments are simply concatenated by space.
How else would it do that? The arguments are processed by the
shell first then passed as an array of NUL-terminated strings.
> The modest proposal is that we put a giant CAVEATS section in the
2002 Nov 14
1
Bullet proof bulk email friendly hosting & cheap mass email campaigns.
We are the marketing specialists www.host4bulk.com that provide cheap
bullet proof bulk email friendly hosting for your website ($400 for
one month of bullet proof hosting) and cheap bulk email campaigns ($200
for 1 million emails sent)
As you may already know, many web hosting companies have Terms of Service
(TOS) or Acceptable Use Policies (AUP) against the delivery of emails
advertising or
2006 Aug 09
0
select-multiple for has_many association
I haven''t looked into this for several months, but there still doesn''t
seem to be an obvious way to generate a HTML select element for
choosing multiple items to be set for a has_many association.
<select id="person_task_ids" multiple="multiple"
name="person[tasks][]">
<option value="1">Do something</option>
2006 May 02
0
Validation in File Upload
I have an app whose admin allows users to upload PDFs to populate a
"newsletter" section.
I''m having trouble getting validation to work properly.
I want to be sure that a name, description & file are specified in the
form.
The app seems to catch the error and won''t write a row to the DB but it
will create a file sized 0KB in the upload folder and it
2012 Jan 30
4
Reaching into a has_and_belongs_to_many - will :through work?
Hi. I''m hoping somebody can tell me that I''ve just gotten my syntax
wrong and I can in fact do what I want to do.
I''ve got a Group, and a Group has_many Campaigns.
Campaign has_and_belongs_to_many Users (and, naturally, vice versa).
So I''ve got a groups table, a campaigns table (that has a group_id), a
campaigns_users join table (with campaign_id and
2006 Jan 25
2
select list generated from table
Have 2 tables - clients & case_managers
class Client < ActiveRecord::Base
has_one :case_manager
end
app/views/clients/_form.html contains line...
<p><% collection_select("client", "case_manager_id", \
case_manager.find_all, "name", "id") %></p>
and this line generates error...
undefined local variable or method
2008 Jan 13
0
Obtain selected value from collection_select
Hi
Im trying to change the layout of a view depending on the value selected
in a collection_select box dynamically. Iow the value selected must be
passed to the controller without any submit buttons beings pressed.
Ultimately I wanna know how to obtain the selected value from
collection_select and refresh this value if the collection is
changed....
Any help would be appreciated!! thx
--
Posted
2007 Apr 15
0
how to obtain the selected value from collection_select
Hi,
I''m want to obtain the selected value from collection_select and to use
it
to display something from the same table or other tables.
There is my short code :
<TR>
<TD><label for="country">country name</label></TD>
<TD><%= collection_select(:country, :country_id,
@countries, :id, :name) %></TD>
</TR>
by selecting a
2007 May 09
0
How can I specify the selected value in collection_select when fieldname different than variable?
Hi all,
I have a relatively simple scenario. I have a form that can have a
list of multiple phone objects in it. I''m trying to get the edit and
entry screens to work with unique field names. I have entry and
record creation working, but I''m still working on edit. Is it
possible for me to specify the value of the selected index to the
"collection_select" method via
2023 May 28
1
command [argument ...] in ssh(1): a footgun
On Sat, May 27, 2023 at 02:45:34AM +0200, Thorsten Glaser <t.glaser at tarent.de> wrote:
> On Sat, 27 May 2023, raf wrote:
>
> >So, perhaps this could be added to the existing
> >sentence/paragraph:
> >
> > "so any spaces in individual arguments must be
>
> Must they? No, a single space will do just fine.
They do if you want the receiving shell
2009 Feb 17
3
Dynamic select box
Hi everyone,
I have a problem. I want to display a different select box wether the
current user is an admin or an user.
So I thought I could do this in my view where my form is displayed :
<p class="form-input">
<%= f.label(:role_id, ''Role:'') %>
<%
if (current_user.admin?)
then collection_select(:user, :role_id, Role.find(:all, :order =>
2018 Feb 02
0
Slightly OT : newsletters, mail formatting and netiquette
I would prefer simple text in tech and security related news but you are right - they are HTML formatted. I think it is pure marketing thing. people dump other stuff to remind you who they are and for a sort of entertaining us.
The same story is in OS desktop GUI including Linux. I use CentOS 6 and 7 and still do not like 7. Not to mention in the morning Win 10 with all its crap included.
2023 May 27
2
command [argument ...] in ssh(1): a footgun
On Sat, May 27, 2023 at 12:08:43AM +0200, Thorsten Glaser <t.glaser at tarent.de> wrote:
> On Fri, 26 May 2023, Mingye Wang (Artoria2e5) wrote:
>
> > ssh(1) currently affords an argument-passing functionality, but as the manpage
> > states, all arguments are simply concatenated by space.
>
> How else would it do that? The arguments are processed by the
> shell