Displaying 17 results from an estimated 17 matches for "karamchand".
2006 Jan 09
13
Ajax Tabs
hi railers,
I have a model/view/controller with many associations (20+). I would like to
display the relative associations using AJAX, allowing the user to display
the association his/her is interesting at a particular time. Is here any
kind ajax tabs helper or some kind of tab widgets that I can easily
incorporate into my rails application.
regards,
leon
-------------- next part --------------
2006 Jan 25
2
Update join_table attributes
I have two ActiveRecord classes that point at each other with a
"has_and_belongs_to_many" (habtm) relationship using a join table. The
join
table has an a few additional columns besides the _id columns.
For those of you with the Agile Web Dev w/ Rails book, it''s exactly the
same
setup as the articles<->articles_users<->users example on p240.
The habtm
2006 Jan 09
3
Include with two references of one model of the same table
Hey guys,
I just came across this oddity, not sure what to make of it yet, but
I think it might be incorrect behavior. When doing a @inst.find(:all,
:include => ["hometeam", "awayteam"] ...) hometeam and awayteam are two
references from a belongs_to that is of the same model and of the same
table. I will get a pgerror stating that "matches", which is
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello
At the start of October, Duane Johnson announced the Query mixin plugin on
this list. The code was attached to the announcement email. Unfortunately,
I''ve not been able to locate the attached code. Goggle has not helped me
this time. Could somebody forward it to me?
Thanks in advance
Harvey
This e-mail has been scanned for all viruses by MessageLabs.
2005 Dec 22
7
Ruby on Rails and lookup tables
Hi,
I''m a newbie on both Ruby and Ruby on Rails, and I''m struggling with
my first app. I have a table with a column called "employee_id" which
is a foreing key associating it with the "employees" table. I have
populated both tables.
When I run "ruby script/generate scaffold <model name> <controller>"
it generates a web page with all
2006 Jan 09
3
Thomas Fuchs Interview on Audible Ajax
Hi guys,
I had the pleasure of interviewing Thomas Fuchs for "Audible Ajax", and
thought that some of you may be interested to hear it:
http://ajaxian.com/archives/audible-ajax-episode-12-thomas-fuchs-of-scriptac
ulous
Cheers,
Dion Almaer
Founder, Ajaxian.com
http://ajaxian.com
Cleaning up the web with Ajax
2006 Jan 24
2
NULL id''s / invalid references
Hi,
could you suggest me how to handle this in a proper way? I have a table
which has
othertable_id column (relationship is belongs_to) Problem is, that
sometimes there is a NULL value and table.othertable.foo returns an
error... what should I do about it? change something in model? in view?
or just add "unknown" row to othertable and update table.othertable_id
with id of this
2005 Dec 30
2
Beauty in Page Layout
Hi Railers,
I have a model with many associations (20+). I would like to display the
relative associations using AJAX, allowing the user to display the
association his/her is interesting at a particular time. Is there any
existing applications or sample code that I can look at to accomplish the
task?
Present I have one long page, with master (displaying current record
information) and many
2006 Feb 14
6
Rails on Sun
Hi Everbody,
I''ve got a potential idea for introducing Rails to my company. My only
shot at this is to minimize what our Ops guys would have to install and
configure to get this up and running.
Right now, our servers are Solaris boxes and we are using Sun ONE as our
web server.
Anyone got Rails running in this environment?
Also, has anyone got Rails talking to Oracle databases?
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello,
I have Oracle XE installed.
I have a table USERS.
When I try to generate a scaffold it gives me this error.
I tried also with Mysql and it worked.
E:\radrails\projects\MPS>ruby script\generate scaffold user
exists app/controllers/
exists app/helpers/
create app/views/user
exists test/functional/
dependency model
exists app/models/
exists
2006 Jan 11
8
Oracle and Rails seems really slow.... In development
I''m just looking into how to connect to Oracle using Rails. I''ve got
everything connecting and working as it should.
I have a Users table in Oracle:
create_table "users", :force => true do |t|
t.column "username", :string
t.column "created_on", :datetime
t.column "email", :string
t.column "note", :text
2006 Jan 02
5
NoobyQ: how to work with a table of static lookup data??
Hello out there!
Nooby question: What''s the "Rails" way to work with tables of relatively
static lookup data?
Objectively (I''m thinking); I don''t want to hit the DB each time, so for
each lookup table, initialize a globally available hash with lable/value
pairs...
Am I on the right track?
How would you do this kind of thing in Rails?
Thanks!
--
2005 Dec 15
5
Avery Lables, PDF::Writer or LaTex?
In a new app we are developing, we need to be able to dynamically create
a PDF and send it to the browser (inline with send_data). I have been
tinkering with PDF::Writer and love the simplicity and native ruby-ness
of it all.
However, one of the main uses for this functionality is to output a PDF
of addresses to be printed on Avery 5161 labels. LaTex seems to be
suited well for this, but it
2005 Nov 22
11
Building a conditions clause (for find) of multiple optional params?
I want to be able to find items according to various params - category_id, member_id, type_id,
rating, etc. What I have now is something like:
if(@params[''category_id''])
@items=Item.find(:all, :conditions=>["category_id=?", @params[''category_id''])
elsif(@params[''category_id''] and @params[''member_id''])
2005 Dec 20
8
Using rails with stored procedures
Hi all!
I am quite new to rails, and I would like to know if there is a
tutorial, or if someone can tell me how to use rails with stored
procedures and views.
Any help would be appreciated.
Thanks to all
--
-------------------------------------------
Gioachino Bartolotta
2006 Jan 13
19
Problems with scaffold''s parameter on Oracle
Hi
I run Ruby on Rails on Oracle XE.
I have a simple table:
create table customer(id number primary key, name varchar2(100));
And
ruby script\generate model Customer
ruby script\generate controller Customer
http://localhost:3000/customer/
- show a fine list, but when I click show/edit/destroy, I get an
ORA-01722:
OCIError: ORA-01722: invalid number: select * from (select raw_sql_.*,
2006 Jan 02
19
AR: How to store and restore in YML.
Hello-
I have a database with entries that are segmented by customers. I would
like to be able to store / delete / restore a particular customer''s
information. I will need to rebuild the rows on restore and also
rebuild the associations for the different tables.
For example,
customer {
id
name
}
companies {
id
customer_id (belongs_to)
name
}
contacts {
id