Displaying 20 results from an estimated 1000 matches similar to: "how to add a "pseudo" folder before the controllers/action/id"
2005 Mar 02
2
form action in mail (actionmailer)
Hi everyone. : )
I meet problem when use form tag in actionmailer. (content-type is text/html, surely)
I want to use form action in actionmailer''s view (.rhtml) for some reason.
1. I use start_form_tag helper method as normally, but how I can ?
I did <%= start_form_tag :action => "http://myhostname/mycontroller/myaction" %> or
<%= start_form_tag :action =>
2006 Aug 07
1
Routing/Redirecting
Hi all,
Can someone tell me how I could redirect from an url like
"www.url.com/mycontroller" to "www.url.com/en/mycontroller"? I was
reading all sorts of routing documentation but couldn''t come up with a
solution. Of course this should be a general rule, so
"www.url.com/mycontroller/myaction/myparam=99" should naturally redirct
to
2006 Mar 02
4
LDAP and Rails ???
Hi,
We want to start a new website, and we want to use our
existing authentication system which is LDAP. Can
someone tell me where I can find the information about
how to use LDAP in rails ???
Thanks you very much
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
__________________________________________________
2006 Apr 25
2
how can I access a class variable outside of the class???
Hi
we wanted to access a class varaible from outside of
the same class, like
class klass
@@var1
end
we found out we can not use the class variable like
this:
klass.var1 we have to create a class function like
class klass
@@var1
def var1
return @@var1
end
end
If anyone know how to access a class variable directly
without passing by a function???
Thanks you very much
2006 Mar 08
4
scrollbar doesn''t show on the right place when using partial( )
Hi,
I''m using partial() to connect ours pages togother,
however, one of the partials is larger than the other,
when it happens, instead of create a scrollbar on the
browser, a scrollbar appears at the end of the
partial, since the partial is in the middle of the web
site. it isn''t really good... So does some one know
how to remove the scrollbar on the partial and put it
on the
2006 Jul 14
1
ActiveRecord, can it save more than one row at a time????
Hi,
I wonder if there is some fonctions which allow an
activeRecord to save more than one row at a time???
As I understand, when we create an object from
AC::Base, it represents one row of the table. So if I
want to save more than one row, I have to create the
object one by one and then save them one by one. If I
have 10, it is fine, but if I have more than 1000, so
it will a lot of time.... So
2006 Mar 10
1
how can I add a new fct to the class Hash
Hi,
We use a lot of "hash" in our program and we want to
add a new function to the class, does someone know how
to do this????
Thanks you very much
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best
2006 Mar 16
3
image doesn''t show (rhtml path???)
Hi,
we try to show an image which is not inside the rails
framework, and we are not able to see the image!!!!
does someone know how to do this???
our rails is installed on
/opt/rails/project1/, so inside "project1" we have all
the rails directory like "app", "public", etc.)
our image is on the "/usr/images/"
so in our link on the rhtml. we use a link
2006 Mar 24
1
upload a file to server???
Hi,
We would like to upload a file to the server, like
user chooses a file with a browse button, then click
on a OK button, then the browser send the file to the
server, does anyone know how to do it in rails?
Thanks you very much
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
2006 Apr 27
3
HELP!!!! What is the CGIXXXX.YYY stored in /tmp/ ?????
Hi,
We have a website which loads a data file and then
create a html file (according to the data file) with
more than thousand of combobox at a time (on the same
page).
The first time we load that page, everything seems
fine. all combobox have been created. But when we load
a second data file (not the same) the system seems to
create some tempoary files which contains the first
choice of the
2006 Apr 03
1
why ruby GC can take only 8 meg of memory????
Hi,
As I understand, the GC of Ruby can take only max. 8
meg of memory. So I wonder if there is some reason
behide this or it is simply a hardecode feature????
and if I want to increase the memeory, how should I do
this???
Thanks you very much!!!!
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
2006 Apr 24
1
using helper which is placed outside of /app/helpers????
Hi,
WE wanted to load a helper outside of app/helpers.
Actually our helpers is placed in lib/commoncode/ for
the ruby classes, we can simply use require
"commoncode/myclass", but we can not do the same
things with the helpers, we try:
helper ''commoncode/ourhelpername'' -> error
helper :commoncode/ourhelpername -> error
Does someone know how to do this???
2006 Jun 05
7
":database_manager =>CGI::Session::MemoryStore" doesn''t work properly...???
Hi,
We are try to use the "database_manager
=>CGI::Session::MemoryStore" for the session
management. our website has a lot of "redirect_to".
while the website is running under webrick, everything
is fine. But when we run the system under
aprache/fcgi. the redirect_to seems doesn''t work
anymore with the option "MemoryStore"
does anyone have the same
2006 Apr 19
9
Initial load time when periodically_call_remote
When I do periodically_call_remote with e.g. :frequency => 30
after initial page load I have to wait 30 seconds until this partial
renders first time. Does anybody know how to make ROR to render partial
on web page load, and then start periodic calls every 30 seconds? I
tried to put
<div id=''mydiv''><%= render(:partial, :action=>''myaction'')
2006 Jan 18
1
Helps!!!!! Rails database connection guru needed!!!!!!!
Hi,
I really need help to understand what is happening
while Rails connect to a database, (we area actually
using postgresql, so my example will be with
postgresql) What I understand is Rails is able to
connect to different DB. Actually, this is what we
want, and we have made some tests, everything is juste
fine. However, all these tests lead us to some
important questions that we did find the
2006 Apr 12
13
rhtml produces so many white places?????
Hi,
I have a rhtml file that uses some ruby code inside,
there are not too ruby codes, but it repeats itself
thousands of time. I find out each time when the ruby
code execute, it will produce the html code correctly.
But the produced html will conseved the "format" of
the rhtml, and it adds a lot no used white space!!!!
example : toto.rhtml
<body>
<table>
<% data.each{
2006 Nov 04
0
Session::ActiveRecordStore
Hi,
I''m trying to use the ACtiveRecordStore option to
accelerate the respone time, since I will a hugo
object stored inside the session object. Everything
works fine, however, I want to know if the "sessions"
table must be set on the default database like pro.
test, dev. Or Can I tell rails for the sessions table
you should look at "This" database, instead of the
link_to_remote, how to send "data" to another <div> when something system detects something wrong???
2006 Jul 10
0
link_to_remote, how to send "data" to another <div> when something system detects something wrong???
HI,
I try use link_to_remote to do a ajax update on my
page,
when eveything is OK, the syetem returns data to the
ajax zone, but when there is something wrong, like the
entry wasn''t correct, I want to send data(a message)
to another zone (the zone is defined in the layout
(message zone used flash[:notice]) I was never able
send data to the other zone, because it is on the
layout, and I
2006 Jul 10
0
busy cursor in ajax
HI,
I have an ajax which take more than a few seconds, so
I want to set my cursor to a "busy" cursor... does
someone knows how to do this???
thanks you very much
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo!
2006 Apr 06
1
how to tell server to do <something> once ?? or schedule thing with rails??
Hi,
I have some initialisation need to be done only when
the server starts. And I don''t know where should I
pull those codes, should I pull them into some special
controller, or some place else....
Also if I want to schedule some task with rails, it is
possible???
Thanks you very much????
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of