search for: djtequila

Displaying 12 results from an estimated 12 matches for "djtequila".

2006 Jun 27
5
Rails cronjob?
I want to be able to write a script in Ruby which regularly consumes an XML feed from a fixed source, re-formats it, produces a large file for web delivery, and updates a database with the contained information. It''s simple - just running a script from a cron job, and some basic data manipulation... But I''d prefer to use the Rails database mapping constructs than roll my
2006 May 10
1
model mixin module madness
If I have several models which exhibit the same functionality, it seems makes sense to create a mixin, ''include'' it in each model and save myself some work and repeated code. Where can I define a module which will be available to all models? I can''t seem to find a documented place for them. Alternatively, is there a Rails-standard way of achieving the effect? Ben
2006 Jun 01
9
More flexible file column?
The file column plug-in is great, but there is a problem with it. Well, two... But the other is well documented now. :^) Consider a time when you''ve created a CMS for a client and it''s been in use for over a year. Say 1500+ images have been uploaded so far. Now the client comes back with a simple request... ''Can you change the thumbnail size to 80/90, rather than
2006 May 12
9
Version control for deployment?
If I can get root access, I''ll use version control for deployment as well... It beats ftp and scp hands down for speed. Setting up a repository on a remote server means I get automatic off-site backup as part of the development cycle, and deployment/site update is as simple as a three word command line entry. Small changes on remote test sites can be made with Vim (or your *nix
2006 Jun 02
0
Trying to use Ajax scaffold throws up odd behaviour
|Interesting... On a new project with a fresh database just created, I downloaded the smooth-loking Ajax Scaffold generator and tried it out on a ''pages'' table: C:\radrails\project>ruby script\generate ajax_scaffold Page PageAdmin (I''m using Windows.) After it calmed down I tried to access my shiny new admin page, but I got this:| ----- NameError in
2006 Jun 20
0
login security
I''ve tried all of the log-in generators now, I think. Each has its own problems... I think I''ll be writing my own, or adapting the ''login generator'', which is the best as far as I can tell, but has the least features. A problem they all have is with browser caching after log-out. If I log out, I can hit ''back'' and see all the protected
2006 Jun 20
0
re: Maintaining same session for a user across
It''s not necessarily ideal to just store the data in the database. In the case of an online shop, the user will have to log in before adding to a cart - otherwise there''s nowhere for the data to go... Or the session gets ignored when the user logs in and the database takes over. (I''ve used systems like this. Irritating is not the word...) I''d say: 1: use
2006 May 10
0
Re: Still Stumbled on First things in trying, RubyOnRails
Ling, I got the Agile Development with RoR book. As my next project was to be a bespoke online shop, I started by trying to copy the complete tutorial project - an online shop. I got a load of errors and had no way of working out how to fix them... Or extend the code and write new rails projects. When I took out a couple of days to go through the tutorial step by step, I ended up with a
2006 May 11
1
Mixins
If I want to write a function which will be available to views, I write a helper function in one of the places set aside or that very task by Rails. If I want to write a little suite of functions to be mixed in by a number of model classes (but not all), where do I put them? Plug-ins look like AN answer, but they also seem a little heavyweight for simple, project-specific tasks.
2006 May 16
2
Good and Bad Experiences with Hosting Companies
I''m about to get hosting for an on-line shop application in the UK. I''m leaning towards Bytemark, as they seem to have the right product range and attitude. Support sound knowledgeable and helpful and they show a marked preference for Debian, which I happen to be fond of. Has anyone tried them? Has anyone had good or bad experiences with other hosting companies
2006 Oct 13
0
Deployment problem with Capistrano
I have everything set up that I need - SVN, webserver (Apache2.2), mongrels, etc. Capistrano is deploying the site well enough, to a point. I need to create sym-links to my file-column created content directories (in shared) and copy the database.yml file (also from shared) into the current folder. I''ve written the following task: desc "Copy the database config file over and set
2007 May 14
0
LibXSLT-Ruby install on Windows
Hi, I need to use XSLT with Rails, but I''m developing on Windows. Unfortunately, the LibXML-Ruby gem doesn''t install on Windows boxes... And LibXSLT-Ruby depends on it. Has anyone managed to get LibXSLT-Ruby working on Windows? Can anyone think of an alternative? (Other than using a Linux box for development, which I''d rather avoid if at all possible). Thanks! Ben