Displaying 20 results from an estimated 900 matches similar to: "Frames"
2006 Jan 11
2
Creating a DB in the schema import process
I''ve got a bunch of table creations in the schema.rb file and all is
well. However, I have to manually go and create the db first. Is there a
way (something like a create_database method) to get this to work?
(execute "create database ..." didn''t seem to cut it either.)
_______________________
Brad Eck
Sr. Software Engineer
Pelco
3500 Pelco Way
Clovis, CA 93612
2006 Jan 11
1
Multiple apps on server conflicting
We have a situation where one app on the server seems to be affecting
another. So, we start the first app on port 3000 and run it and all is
well. We start the second app on port 3006 and it fails (blank screen).
We then have to blow away the temp files and try again. If we start the
3006 one it will work and then start 3000 and it fails. So, in essence
the first one wins. Any thoughts? We are in
2005 Dec 21
1
Active Search
Issue:
I am trying to get a good quality search capability across our site. I
ran across ActiveSearch
(http://julik.textdriven.com/svn/tools/rails_plugins/simple_search/)
which seems to be a better solution for us than SimpleSearch (and
SearchGenerator) as it is more than just word based. However, I am
unable to get the project built and being fairly new to Ruby / Rails I''m
a little
2006 Jan 06
1
DHTML on WEBrick
I have some simple dhtml code in my rails app that hides fields I do not
need displayed. This worked great as soon as I click on the item that
initiates the hide, but within one second it pops back up. My assumption
is WEBrick is refreshing to a previous state and I wondered what y''all
thought was the appropriate way to handle. I thought maybe the default
environment in production would
2005 Dec 21
0
subscribe
_______________________
Brad Eck
Sr. Software Engineer
Pelco
3500 Pelco Way
Clovis, CA 93612
Office - 800-289-9100
Email - beck@pelco.com <BLOCKED::mailto:beck@pelco.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20051221/107d6e92/attachment.html
2005 Dec 29
5
Model Composition in Rails
I''m struggling understanding the model view of a combined model. Take
the following:
class P4 < ActiveRecord::Base
has_many :p4_priorities
end
I figured out the naming and referencing of the sub models (i.e.
P4.p4_priorities - seems simple enough but I had weird issues related to
it). I''m all ok except that I am having issues with how to reference a
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my
controller, all the other actions use the application.rhtml layout, so
what i''m doing is ...
class SomeController < ApplicationController
layout "simple", :only=> :some_action
......
end
and the "simple" layout is applied to all the actions, can someone
please give me a hint?
2006 Aug 14
8
How search engine friendly are RoR sites?
I am a total RoR virgin, and took my first steps this weekend into the
Ruby world. A lot of sites I create need to be as SEO friendly as
possible, particularly for google. Before I delve any further, can
anyone tell me how friendly the dynamic URLs or if there is the usual
rewrite mod for rugby?
Thanks
Mike
--
Posted via http://www.ruby-forum.com/.
2006 May 13
1
newbie question - routes.rb on server
Hello,
I am new to Ruby but not to programming. I have a domain name and server
space with a host who said that ruby on rails should work on the server.
All I want to do is make sure that a test ruby application works online
so that I can begin development on an app. I am able to get the test
program to work locally but not online.
In C:/ruby/projects/test/controllers/TestController.rb:
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc)
and I would like to redirect them back to the last page they were at
before calling that action. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 06
2
replace unkown action with 404
is there a way to replace unkown action error with a pretty 404 page ?
I set the ErrorDocument 404 in .htaccess, however when someong goes to
http://www.mysite.com/bogus i would like it to show a 404 error instead of
just "Uknown action".
Is this possible with a rescue or something?
adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 11
3
sanitize dangers
I''ve noticed that it is possible to pass javascript unaltered through
the sanitize function using CSS. For example:
sanitize( "<style
type=''text/css''>body{background-image:url(''javascript:window.alert(1)'')
}</style>" )
IE will execute the javascript. Firefox will not. I haven''t tried it
with any other browsers.
2006 Jul 22
3
Connection refused - connect(2)
Dear all,
Please help me in this regards,
I am using models to access LegacySchemas using
set_table_name and set_primary_key...
[code for model]
class CdDetails < ActiveRecord::Base
def self.find_data
set_table_name ''cd_details''
set_primary_key ''cd_label''
find (:first,
:select => "cd_label")
end
2006 Feb 25
2
A Couple of Questions
Hi All,
I have been using Ruby and Rails for only a few short days and I am
loving it so far. I have a couple of questions relating to a specific
project I am working.
1. I am wondering about sessions expiring after a set period of in
activity and what would be the easiest way to set it up.
2. I would like to be able to users on the system. Each of these users
has a login of there own. Each
2006 May 14
6
file and directory layout below app/models
Hiall,
Is it possible to organize my model files below app/models into
subfolders? E.g. I would like to put admin related models into their
own subfolder. This kind of structuring works for controllers and
views (scaffolding creates the right subfolder-model mappings), but
app/models always stays flat. I''d really like to be able to group my
code into logical, well packages :-) Yes, I
2007 Feb 23
2
how to remove spaces from phone number
Hi,
I need to allow login based on the phone number. During the signup they
can give the number in any format with spaces, slash or (). But for
storing in database and then during login to compare I just want the 10
digit number. How can I remove the special char from phone number before
storing to db ?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jan 17
5
simple question
How do I pass parameters from one controller to another during
redirect_to command? I want to pass both model and non-model objects.
The solution I use is via session, but I rather pass it as parameters to
the redirect_to
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 01
9
access model from controller
Hello,
Rather new to RoR, so I''m not sure about the terminology and such :-/ .
My question is: how could I know the model which is associated to a
controller?
For example:
- controller class is TestController, which is a subclass of
ApplicationController
- associated model class is Test
How could I write some code in a method of ApplicationController to
dermine the current
2006 Jan 11
2
Wiki Home Page Has Spam Links
It seems the wiki-spam bot has been at work again. There are numerous
hidden links toward the top of the page that might be better gardened
out right away, if you know what I mean ;-|
--
Posted via http://www.ruby-forum.com/.
2005 Dec 29
3
Class Variable Scope
(Hopefully) a quick question about variable scope issues. In one of my
controllers, I have a class variable:
class TestController < ApplicationController
@@testClassVariable = 0
...
The problem is, in my "list" method I''m trying to increment this
variable by one each time, printing it out, but it seems to reset to 0
every time the list method is called:
def list