Displaying 7 results from an estimated 7 matches for "yimsiriwattana".
2005 Dec 26
5
show render time on pages
hello all!
is it possible to access the render time variables in the view? i would
like to show
Completed in 0.09574 (10 reqs/sec) | DB: 0.08729 (91%) | 200 OK
[http://localhost/person]
on each page like in the logs.
how can i do this?
2006 Apr 08
5
Creating sub actions
Hi,
So finally I have also decided to roll my engines on Rails. But I am
kind of stuck in a situation. I understand that for every model there is
a controller class. This controller class has cirtain set of methods
where each method defines cirtain action to be performed. And each of
this action renders cirtain UI.
[The background]
Now let say I have a object "Car". Apart from
2005 Dec 25
4
How to display a welcome page
Wow, I can''t believe that after a few weeks of playing around with Rails I
got stuck on something that seems like it should be really simple.
How do I display a default welcome page for visitors who are not logged in
and send logged in users to the appropriate controller. I am using the
login_engine and the user_engine.
The two methods I have seen looking at sample code are to stick a
2005 Dec 26
2
special characters in rhtml
Is there any pattern how to use non-english fonts right in rhtml file? Using
ą is frustrating.
Thanks,
Szczepan
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 25
2
Caching of models?
Hello, people!
I have a problem. I googled, asked for help on IRC. I can''t find an
answer. Suppose I have model Cart (from "Agile Web Development with
Rails"). I added call to logger.warn("Some warning") to one of it''s
methods. It fails with NameError, because ''logger'' is unknown to
model.
undefined local variable or method
2005 Dec 26
3
data insertion in multiple tables
I have two tables like:
Table A:
id (autoincrement)
name
Table B
id
id_of_A
desc
I want to add a record to table A and based on the id of A, I want to add a
record to table B.
I don''t think there is any SQL command that support this (at least in MySQL
4.1, so I use LAST_INSERT_ID()).
(Is there any other way? or MySQL 5 support any special SQL command?)
But I need
2005 Dec 24
2
Eleven??
I was poking around in the Gentoo Linux repository yesterday, trying to
satisfy my curiosity about how many programming languages there are in
"common use" today. I found one called "Eleven" which is quite strangely
similar in intent to Rails. The home page is
http://eleven.sourceforge.net/.
Eleven is much simpler than Rails, and there are some interesting ideas
in it. To