Displaying 20 results from an estimated 1000 matches similar to: "replace unkown action with 404"
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/.
2003 Nov 17
2
IAX2 connectivity problem (qualify=yes)
Hi there,
I still have issues with the IAX connection between two servers (one
static (server A), one dynamic (server B), none behind NAT):
B registers with A, and "iax2 show registry" shows that everything is
fine. However, after a while if I check on server A with "iax2 show
peers" I see a status of UKNOWN (in iax.conf there is a qualify=yes
statement for server B).
2003 May 07
4
dsmark, unkown
Hi,
I want to use the dsmark, but it always says: "unkown qdisc", although I
have enabled it (y in Network options), and I have my kernel recompiled.
I am using SuSE 8.1, 2.4.20 Kernel, tc available at the HTB site (with
already precompiled HTB queue).
Can anybody find the problem?
thx
_________________________________________________________________
MSN 8 helps eliminate e-mail
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 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 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 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/.
2006 Jan 06
3
Getting model class by string
Hello,
I have an interessting problem, I''m not sure how to solve :-)
I have the name of a model in a variable like this:
My model is called Article
My var contains "Article"
Now - How do I get the model class, so I can call Article.find,
Article.new etc ... ?
Greetings,
Gitte Wange
2006 Jan 25
11
Executing Ruby code that is inside a string
I would like to put Ruby code inside a string, between <%= %> tags, and
have the code inside the tags executed when the string is displayed. Is
this possible?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 24
1
best way to design uknown depth of subcategories
Hello,
What would be the best way to design a table of posts that belong to a
unknown depth of categories. Say i wanted to display the posts of data (i.e.,
craigslist) but the category could be something like
NewYork/RealEstate/Housing/ForSale/ByOwner. Would acts_as_tree work best
here and assign each sublevel to a different id? just trying to take the
easiest approach here using the best
2006 Oct 14
2
issues with validates_associated not throwing error
Hello all
I''m having an issue with ruby on rails, and it not throwing an error
where it should.
I have a class ''clientpool'' that is:
class Clientpool < ActiveRecord::Base
set_table_name "clientpool"
set_primary_key "id"
belongs_to :clients, :foreign_key => "cliname"
validates_presence_of :cliname
validates_associated :client
end
2006 Oct 24
13
How can my boss take rails seriously with bugs like this?
The Time::next_week method is supposed to give the time of the start of
the next week. But look at this, it cocks up :
>> t=Time.parse "Monday October 16th 2006"
=> Mon Oct 16 00:00:00 BST 2006
>> t.next_week
=> Mon Oct 23 00:00:00 BST 2006
>> t.next_week.next_week
=> Tue Oct 24 00:00:00 BST 2006
>> t.next_week.next_week.next_week
=> Mon Oct 30
2006 Feb 15
6
Problem creating appdoc documentation
Hello, can anyone help me.
After a few weeks I returned to the rails to play with it. But I
recognize that I''m now not abble to build appdoc. The same thing that
few weeks ago worked without an problem now give me an error:
unrecognized option `--line-numbers --inline-source''
$ rake --trace --verbose reappdoc
(in /home/radek/src/firma/giga-net/ncc/work)
** Invoke reappdoc
2007 Feb 25
0
Fedora Core 6 dom0 with a win 2003 server domU; unkown PCI device
Hello,
I''ve got xen installed on a box running Fedora Core 6. In addition
I''m running a Windows 2003 server as a domU. Everything work fine
and I am quite satisfied with the setup. However, in win 2003''s
device manager there is a unknown PCI device that I not able to
find a suitable driver for. Windows update can''t find one either.
Is there a way to find what
2007 Dec 13
0
[LLVMdev] Obfuscation Transformations Clobbered by Unkown Optimizations
Hello, Matt.
> Does anybody know what pass is clobbering my obfuscations?
I think this is DAG combiner machinery in the codegenerator itself. Try
to provide -fast option to llc.
--
With best regards, Anton Korobeynikov.
Faculty of Mathematics & Mechanics, Saint Petersburg State University.
2005 Mar 29
0
.call Files and Unkown Keywords
Hey, another question. I am having problems with my call files.
Whenever I drop one into the outgoing folder, I get an "unknown
keyword" error for each line in the file. This is what I have my file
as right now.
Channel: IAX2/scheda:*****@switch-2.nufone.net
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: outgoing
Extension: 18636045489
Priority: 2
On the channel, that may need to