Displaying 9 results from an estimated 9 matches for "eachmapinject".
2006 Apr 30
8
format numbers as words
Does anyone know if there is a function available which can format any
entered number as words?
eg: ''1234'' would be ''One Thousand Two Hundred and Thirty Four''
In the past, I would have said this is a tall order, but from what I''ve
seen with playing with rails for a short time, I don''t know what to
expect. :)
Thanks for any help,
Damien
2006 May 23
6
How to list all models of an application?!?
How can I get a list of all model classes in the domain of a Rails
application (all models, both in "app/models" and in
components/somedir/model.rb)?
Thanx in advance for your precious help!
Edoardo "Dado" Marcora
2006 May 14
3
Help with domain model/database design
Hi All,
I was wondering if I could get some comments on my approach to the
design of the domain model and database for my rails app. I don''t
have much experience in this so I am wondering if I am heading in the
right direction.
My app is an ecommerce site for my business which is a record label.
That might seem straight forward, but the one thing that might be
tricky is that
2006 May 17
9
Render No Layout?
Hi guys,
Am having a problem.
I have this def in my index controller that works like this:
def do_something
$a = variable1
$b = variable2
$c = variable3
$d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'',
''#{$a} - #{$b}''); \n </script>"
$trigger = "1"
render(:partial =>
2006 May 07
3
Webrick not showing sql queries any more?
Hi all,
I updated rails to 1.1.2, and somehow, when I run script/server on a new
rails project, I don''t see the sql queries in the console any more... It
was very useful to see them live...
Does any one have any idea why?
Thank you very much!
Nauhaie
--
Posted via http://www.ruby-forum.com/.
2006 May 13
2
Using RJS in views without ajax
Hi!
I can use RJS in views like this (without using ajax):
<%=link_to_function("switch fields",
update_page do |page|
page.insert_html :before, ''date'', date_select(''exhibition'', ''date'')
page.remove ''date''
end) %>
Is there a way to move this RJS code into a function to separate file?
.js files are not parsed
2006 May 08
5
Files in LIB folder do not seem to update even in DEV mode!!
Hi
When i change my classes in the LIB folder they are not updating on the
server. My server is in development mode. Any ideas why?
Any help is appreciated
Thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2006 May 14
3
Strange Database Mapping Question
Dear Rails List,
I am new on the list so will assume straight away that this question has been
answered before. As I can see no immediate way of searching the list, I will
ask the question. I apologize in advance for any disruption this may cause.
Question time:
I am trying to write a web application for the staff at my office to play a
form of virtual Super14. Its a bit like any of the
2006 Aug 03
12
More than one has_many :through association between the same 2 models
I wonder if you can have more than one has_many :through association between
2 models.
For example...
I have a model Teacher and a model Class
Now, 1 Teacher works in many Classes, right?. So I need a join model like
class Work < ActiveRecord::Base
belongs_to :teacher
belongs_to :class
end
But I also would like to know if a teacher CAN teach a class before I