Displaying 6 results from an estimated 6 matches for "tamim".
Did you mean:
tamil
2006 Aug 18
7
Rewriting URLs - help needed
Hello -
I''m grappling with some tricky URL rewriting with Apache 2 and mod_rewrite,
and could use a hand.
Briefly:
URL for application is: www.servername.com/path/to/app/
There is no Alias directive; the application is in the directory
/www/content/path/to/app/ on the server file system.
The FastCGI dispatcher (dispatch.fcgi) lives at:
/www/fcgi-bin/path/to/app/dispatch.fcgi
Inside
2006 Sep 07
6
Template "specialisation"
I want to use a sitewide default template and use a specific version in some
controllers to have a good DRY approach to my layout. Those controllers
should add a little bit more HTML before rendering the results of the
actions, in order to avoid copying the entire sitelayout every time.
How can I do that? Currently my code is like this:
class WelcomeController < ApplicationController
2006 Aug 14
4
Test for string in string
Hi,
Is there an easy way to test if a substring exists in a string?
I''m using this check:
if mystring.index(substring) > 0
but it doesn''t seem to be working....
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 12
4
Ferret Wierdness
Hi,
I have installed the ferret gem (on WIN XP). My search and result view
is working, but it comes back with empty results all the time. It seems
like ferret is building the index (there is 3 binary files in the index
directory).
If I add the line:
acts_as_ferret :fields => [''title'',''description'',''price'',''website_url'']
2006 Aug 13
3
Logging in Rails
This is a newbie question, I have a class which is not derived from
ActionController or ActiveRecord but I want to use logging, I tried require
but still logging does not work -
This class is located in a file in "model" directory.
------------------------------------
require ''logger''
class Cart
def add_product(product)
logger.info("Searching for product
2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on
netfirms.com. I was perusing their knowledge base and I came upon a
quick-start for something called Ruby on Rails. Since then I have immersed
myself in RoR. I''ve done the tutorials, I''ve purchased the books.
But, I could never get even a sample RoR app to work on netfirms. 500
server errors.