Displaying 20 results from an estimated 200 matches similar to: "update subset of my data"
2005 Dec 31
7
Dynamic form? Not really!
Hi guru''s out there,
Im happilly coding my first rails app, and all goes well. I find myself
manually coding in a particular field all the time (company_id), that relates
the contact to a company. The total coding of this form seems somewhat much.
Could somebody tell me what Rails power I''m possibly missing and stuborn as I
am trying to do myself?
I was wondering if the
2006 Jun 25
4
Zebra Striping a Collection of Partials
I''m using render to display a collection of partials, where each partial
is a table row. Is it possible to zebra-stripe the table using this
method i.e. alternate table rows get a different CSS class? I can''t work
out how each row partial would know whether it was odd or even.
In the normal scheme of things I could do:
<% odd_or_even = 0
for asset in @assets
2006 Feb 15
0
Confused by this error when trying to use ''pagination''
Trying to create stuff without resorting to scaffold command.
I have a list view in my login_controller.rb file...
def list_users
@user_pages, @users = paginate :users, :per_page => 14
end
I have a command in my list_users.rhtml file which undoubtedly calls
this pagination...
<%
odd_or_even = 0
for user in @users
odd_or_even = 1 - odd_or_even
%>
and instead of being presented a
2006 Feb 25
7
Help with DRY: too much code in my view
I''m a newbie to rails, and really to the whole DRY and MVC thing as
well, except where I accidentally fell into things doing it my own way
in the past.
I''ve got a fairly complex DB structure I want to create an interface for
using Rails. Getting simple tables to display, edit, save, not too much
problem there. But where I''m having trouble is figuring out where to
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
Greetings!
I''m trying to update a set of records from the same model on one form. The AWD book gives an example on p.356 but I guess I''m not understanding it.
I can see from the error message I''m getting that the controller is receiving a hash of hashes back from the view, and that it''s got the stuff I expected (two values per record that was sent to the
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
I''ve got a bunch of dynamically generated link paths that I want to use
to link some dynamically-generated image paths. Specifically, I want to
link thumbnails in a gallery to the larger images.
But I''m stymied by Rails'' syntax. I can''t figure out how to do this.
I tried this:
<%= link_to(image_tag("../../images/photos/photo.photogroup/TN_
2006 Feb 02
12
basic ''find'' question
I am struggling to understand the methodology here...
I have a find.rhtml
<%= start_form_tag :action => ''list2'', :first_name = client %>
<%# render :partial => ''form'' %>
<p><label for="client_first_name">First name</label><br/>
<%= text_field ''client'', ''first_name''
2006 Feb 04
1
Can I reset the cycle helper?
Hi:
I have lines in a table I wish to stripe BUT, every now and then
there is another type of line, a section header line. I''d like to be
able to start the line after a section heading always as one of the
two classes the cycle helper is cycling between. Is it possible? If
so, how?
bruce
PS. I realise I could do this with ''odd_or_even'' or the %2 method
(mod
2006 Jul 17
6
3 newbie questions
hey all,
I have 3 tables like this:
Images (id,name)
Tags (id,name)
ImagesTags(imageid,tagid)
in my image model I do a "has_and_belongs_to_many :tags" but to make
it work I need to rename ImagesTags(imageid,tagid) to
Images_Tags(image_id,tag_id). My question is that given that I can''t
rename the table, is there any way to make it work with the original
names?
Second question:
2006 Feb 03
9
Because I''m very slow - trying to use console
I can''t see how to use variables so I am using console to test things
out...
clients table - a column named first_name
My very brief console session...
>> clients = Client.find_by_sql("select * from clients where first_name
= FN")
ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn
"fn" does not exist Fparse_expr.c L1034
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi
I am running Mac OX tiger with the installed ruby 1.8.2, and
mysql5 (I checked that it was running in preference). I
tried to run the various fixes recommended in agileweb. I am
stuck on page 57, script/generate scaffold...
> Could you paste in your database.yml file, from the
> "config" folder inside your Rails app? If you have any
> passwords entered there, you should
2008 Jan 16
1
session data and user stories
hello there,
i have been trying my hand at this rbehave material, specifically in terms
of integration testing a rails application, and i am curious about the most
friendly way to deal with session data.
currently, the only way i have found to simulate a session is to open a
session and refer to everything afterward via the @session variable stored
after open_session. it seems to be workable,
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me)
Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class
So I''m using...
app/assets/javascripts/people.js.coffee and put in...
2008 Apr 03
3
ISPBX Announces COGOBLUE Interface and PBX Appliances
Hi Everyone,
My name is Matt Signorello and I'm responsible for wholesale dealers
sales here at ISPBX. (www.ispbx.com)
ISPBX is a New Jersey based systems developer marketing a series of
solid state Asterisk appliances since 2005. For the last year we've been
working on a new strategy for helping dealers install Asterisk
appliances into the end user customer base in a smarter more
2010 May 03
2
Hierarchical factors
Hello,
Hierarchical factors are a very common data structure. For instance, one
might have municipalities within states within countries within
continents. Other examples include occupational codes, biological
species, software types (R within statistical software within analytical
software), etc.
Such data structures commonly use hierarchical coding systems. For
example, the 2007 North
2005 Sep 06
5
Good Polycom Dealer?
Could any of you provide me information on a good
Polycom phone dealers to utilize. One who provides
firmwares ..etc
Thank you!
Kenny
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
2006 Mar 27
2
Any Polycom dealer willing to help?
Hi All,
We are in search of the latest Polycom firmware SIP 1.6.5 and BootROM
3.1.3as per
http://www.polycom.com/resource_center/1,,pw-492,00.html
Can someone help? We have legitimately obtained these phones but even our
official distributor can't get their hands on updated firmware. The only
thing we have found is http://www.freedomphones.net/polycom/files/?M=A which
has only old versions.
2016 Feb 13
4
Redundant and Geobalancing setup
Hi,
I use dovecot for a long time now, but only as a single isolated server
each time.
I joined a company a few years back. We had trouble with compagnies hosting
our mail, supposedly full redundant and so on.
The company is small, but we have many dealers around the world, and it's
growing.
Mail became the fist choice for clients to contact the dealers.
No mail, and we loose sales.
For
2004 Sep 02
1
Any UK PipeCall/PipeMedia users?
Has anyone out there used the PipeMedia/PipeCall PSTN gateway?
Anything good/bad to say about it?
I'm considering using them for a new customer. They seem to have good rates,
good provisioning tools and (better still) give commission on usage to
dealers.
--
David Gurr
Congruity Ltd. Fax: 0871 661 1756
Hemel Hempstead
UK
2005 May 16
3
Need off-the-shelve PC for Asterisk Server
Does any one have any recommendations on an off-the-shelve PC for an
Asterisk Server? This is for a proof of concept, so it needs to be
inexpensive. I have tried 2 different PC's and had problems with the sound
cards. I am thinking of PC's I can buy from local dealers like Best Buy,
Office Depot. SO a cheap HP, Compaq or eMachine would work fine for me.
--Steve