search for: filipowski

Displaying 20 results from an estimated 33 matches for "filipowski".

2005 Dec 20
3
File Column Directory Add another layer
Quick Question. I understand how to change the default path to something other than public but what if I wanted to add another directory into the equation. I want to upload an image into the following structure: /public/image/userid/imageid/test.gif So basically I want to look up the userid in my users table and put all the images for that user in the same directory. So i have a one
2006 Jan 10
3
Getting a user from a model (sort of a noob) (resend sorry)
Sorry for the resend but I am not sure if the first one ever made the list. As mentioned in my previous posts I''m trying to create a dynamic directory for file_folumn. After finding out that I didn''t have the most recent version I installed the latest trunk and am able to get file_column to act as it should. However I have been racking my brain on how to implement
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
I am looking at adding the Sentry plugin to one of the applications that we are working on. I have a need to store some info that will have to be encrypted and decrypted. I have been going through the docs for the plugin and the AsymetricSentry class looks like the best for what we need to do but I am not sure how to generate the key. The docs say: This is a shortcut for using an
2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2006 Apr 12
3
Capistrano Issues
Well I finnally bit the bullet and upgrade to capistrano and have run into several issues that I can''t seem to find a fix for. Switchtower worked perfectly but I can not get cap to work especially with the change to the command to run a deploy. The following code worked fine in switchtower to deploy: switchtower -vvvv -S stage=stage -r config/deploy -a deploy The stage variable
2006 Feb 08
5
Regular Expression Question
I have looked through the Ruby Pickaxe book as well as done a search but can''t figure out how to validate the format of a field. The field I want to validate is a credit card expiration date field. Based on our user study (going around the office and asking everyone the way they like to fill out that particular field type) everyone prefers the following format in one field:
2006 Jan 09
7
File_column Dynamic directory
I asked this question earlier and did recieve an answer but I am not sure Ifully understood the answer as I am getting all sorts of errors when trying to implement. Basically I want to add a layer to the path for my files. I have the following set up in my model class: file_column :image, :store_dir => :dynamic_dir def dynamic_dir
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if statement? I am using the same form for edit and new and I have a cancel button on the page. This cancel button is built with an if statement that looks right now to see if a parameter exists to define where to go back to if the user cancel. The problem occurs when the user submits the form and there are missing fields by
2006 Feb 26
28
A Follow up to my fedora question: Favorite Flavor Of Linux?
Than my question is this? Now that I have switchtowerized and migrate enabled my app I can start down a new path if need be on a different OS as the base of the system. We have already tried CentOS and found it to have more issues than those mentioned about fedora and through it away faster than one could shake a stick at. Here are our requirements for a stage/dev box and production:
2006 Aug 09
1
Problem install rails via gem
I am getting the following errors when trying to install a new copy of rails: gem install rails --include-dependencies Attempting local installation of ''rails'' ERROR: Error installing gem rails[.gem]: No metadata found! it seems to not be going out to the repository but I was able to update rake via gem update rake. I am running Ruby 1.8.4 on centos Is it just me or is
2006 Feb 17
1
Session Data Question
I am still to new to rails to feel comfortable diving into the source for the framework however my comfort is getting better. My question is this. We are storing the session data in the database using active_record_store. I was looking at the table to just get a better idea of what is going on as far as how the data is stored. I am a bit curious as to the session.data field. What method
2006 Feb 24
1
New Environment?
Hello all, I was wondering if it is possible to create a new environment? IE I want a fourth environment set called Stage. The reason being is that we want to run a staging server of sorts. This server will run a copy of our app that is rebuilt via switchtower every hour. We don''t want it to run in as test we want it to run as a production environment but some of our classes
2006 Jan 04
1
Localize validate_error messages
I am in the process of adding localized language support to my app and I am currently using the various validate methods on fields. How would i go about editing the following text based on a users choosen language: 3 errors prohibited this podcast from being saved basically I am looking to make the generated flash[:errors] text from rails multilingual. Thanks Andrew --------------
2006 Jan 27
2
Multiple database read
I have to extract data from an odbc connection to another database and put into a MySQL database so that my rails app can manipulate it. What would be the best way to set that up? Would I put the connection info in a controller, so that the controller method with open and close the connection? Any thought? -- Best Regards, -Larry "Work, work, work...there is no satisfactory
2006 Mar 03
2
Through relationship
I am working on streamlining one of my apps, and trying to wrap my hands around through, polymorphic, and with_scope. All of these i know i need for what i want to do, based on the little documentation I have found. With this in mid I have tried to implement a simple through in the app to try and get my head around it. This is what I have: class Product < ActiveRecord::Base
2006 Mar 28
0
Looking for Developers in Singapore
...dates who can hit the ground running. Pay will be based on experience. Our Company is US based however we do have a large office in Singapore with over 20 full time employees located in Singapore. If you live in Singapore and are interested please send me your resume. Thanks, Andrew Andrew Filipowski VP Product Management SolidSpace, LLC. office 336.201.5052 mobile 336.692.2401 aefilipowski@solidspace.com www.solidspace.com
2006 Feb 26
1
Ruby on Rails and Fedora Core 4
I have noticed a couple of weird things going on with our code and it running completely different (causing errors where they weren''t before) between our dev environment and a new staging environment that we are setting up. My dev environment is a PowerBook running everything current except for edge rails. Our staging envronment is Fedora Core 4 Ruby 1.8.4 installed via yum
2005 Dec 14
1
select_tag and multiple => true
I was looking at how a select tag when set to multiple = true is returned is just a comma separated list. My issue is that I would rather not add quotes around the values in the list and it is possible that my list may contain a comma. Is there a way to force either to wrap the values returned to the server in quotes or force an array to be returned as opposed to the comma separated one
2005 Dec 15
2
link_to_remote and browser compatibility
link_to_remote generates the javascript: new Ajax.Updater(...). Have I missed something or doesn''t this handle browsers with javascript support but without XHR support? What I''d like to do is: 1. If the browser supports XHR, use XHR 2. If the browser supports javascript (and perhaps even if the XHR request fails) do a POST via javascript 3. If the browser doesn''t
2006 Apr 13
1
Uninitialized constant in a template for production server only
Not sure what is going on here, we are trying to push out a new version of one of our tools to production. Everything works perfectly in development (mac) and on our staging server (debian sarge) but the prodution server (debian sarge) hates what we have done. We have some variables set in the various environments *.rb file One of them is a link to another product. It changes based on what