search for: pezians

Displaying 19 results from an estimated 19 matches for "pezians".

Did you mean: medians
2006 Jun 07
3
fedex tracking
I''ve been using the Business::FedEx::DirectConnect perl module to track and ship packages via FedEx for awhile now. I''m wanting to convert some of this functionality over to ROR, mostly just the package tracking part. Has anyone successfully tracked a package using the Shipping API out on RubyForge? It seems like the functionality is there since it''s just another
2006 Aug 03
9
Rails Cheatsheets!!!
Hey if you know any rails cheatsheet link add it inot the follwing list, lets make a long list on Rails cheatsheet.... ;) 1) 2) 3) 4) . . . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/a6eea2ac/attachment-0001.html
2006 May 09
11
model filter?
Hi All, Is there a way to filter / modify the output of a model class before it''s returned to controller/view that''s calling it? Example: I have a field phone_number which I always want to preformat using the number_to_phone() helper.... Any help is appriciated. Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
4
scope
At my day job this week we released an account manager app that lets people view/manage/pay their bills. It''s a C# .net app, I designed the interface (css, html, js), 10 others did the actual .net stuff (too many cooks that can''t boil water). It went live, and bad things started to happen. Customer 1 could see customer 2''s billing data, customer 2 would accidentally
2006 Jun 27
2
mail_to link where the recipient is a variable
Hi, I want to put a mail_to link in my views, where the recipient is a variable stored in the database. It is not clear to me how I would do this from reading the docs. Could someone please explain or point me in the right direction. Thanks, Paul
2006 Jun 28
2
Newbie question: subdirectories in app/models
For organizational purposes, I would like to create subdirectories in my apps/model/ directory. Is there any easy way to do this while still having the ability to refer to the derived active record class models? I.e. apps/models/blog/post.rb: class Post < ActiveRecord::Base ... end Post.new ... Scott Taylor
2006 Mar 06
2
is "alias" reserved?
I''m playing with an online store.... I have an orders table which holds orders (pricing, statuses, etc). An orderDetails table which holds detailed line items (itemNumbers, unit prices, etc). Each order can have multiple shipping addresses, so I also have an addressbook table. Each orderDetail is tied to an addressbook entry via the ordernumber and addressbook alias, but this
2006 Mar 15
2
ruby data dumper?
Coming from the perl world to ruby, I was wondering if there was anything like data::dumper perl module for ruby/rails? @thing.inspect or dump(@thing) works, but isn''t formatted all as nice. thx :-) -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
6
print an instance variable?
Is there a way to print out an instance variable (@something) so you can see: 1: what it contains 2: how it''s mapped together ?? -- Posted via http://www.ruby-forum.com/.
2006 Feb 07
5
homepage instead of welcome page?
Got a noob question for ya... When I visit http://localhost:3000/ I get the nice "Welcome to rails" page. To get to a controller I have to go to: http://localhost:3000/controllername What if I don''t want the welcome message and want / to resolve to a controller? How do I set that up? Thanks, Dave -- Posted via http://www.ruby-forum.com/.
2006 Jun 27
11
Newb question
This isn''t affecting my app, but I''d like to know the reason why I''m seeing this. In my layout, the following code <%= image_tag "front.jpg", :size =>"760x175" %> generates <img alt="Front" height="175" src="/images/front.jpg?1122106054" width="760" /> Where is the parameter in the
2006 Apr 05
1
number_to_currency inside model
I was wondering if this is possible. I have a model (Item) that contains products. These products have prices that I''d like to format using number_to_currency. Rather than doing this several times inside the view, I thought it might be nice to do it once inside the model. The item table has an field called regular_price which holds a currency amount. I would like to do something
2006 Apr 19
2
validation :on => :update....
I would like to validate a model on several events. I have: validates_numericality_of :ships_in, :on => :update, :message => ''xyz....'' I have this validating on update, but I also want it to validate on save and on create as well. Do I have to duplicate this validator for each event? or is there something cool i can do like: :on => [:update, :save, :create] (which
2006 Mar 22
1
updating multiple attributes
I have a store administration tool I''m trying to build. One view is an item view. Each item can have many attributes. Example: item: bike item_id: 2333 attribute: id: 3 #auto-increment item_id: 2333 #primary key attribute_type: wheels #a type of attribute attribute_order: 1 #the order it
2006 Aug 06
0
js filesizes too bookoo?
Howdy, I use scriptaculous (and therefore prototype) to do mostly page effects, no drag-n-drop, no sliders, etc. Just wondering if there''s a way, other than modifing scriptaculous.js, to not include all of the scriptaculous libraries for my app? Also, is there a "lite" version of prototype that you can use with sciptaculous like there is with mooFX? Thx, Dave -- Posted
2006 May 08
4
gsub no workie
Don''t know why, but cant seem to get this to work for me. I have a phone number field for an addressbook. In the addressbook model I have a before_update declaration that says the following: I''d like to be able to remove all special characters (just numbers please), but this doesn''t want to work for me. before_update :format_phone def format_phone self.phone =
2006 Mar 14
4
has_one
I''ve got an order model that stores order data. One piece of data is a credit card type, which is a digit 1,2 or 3. I have a cardType model that has an id, shortName and LongName for the credit card merchant (visa, mastercard, amex). I want to be able to say: order.cardType.shortName, but can''t seem to get has_one working. It works with has_many and a finder_sql statement on
2006 Jan 10
5
Noob ActiveRecord Join Question
I''m new to rails and ruby, and after trying to get this to work correctly for hours, I thought I''d give this forum an try. I''ve setup a trivial project just to mess around with Rails database naming conventions and associations. I''ve got a table called Pets, and a table called Types. Pets contains a list of pets, Parky the cat, Daisy the dog, etc, And Types
2006 Feb 14
6
[newb] Find vs Find :all question
I''m playing out with writing an online store. So far it has accounts, addressbooks, and orders, and those 3 are tied together with an customer ID. I also have orderDetails, which are associated to the order via an order number. See models below... When I do the following I can access the orderDetails information just fine: @order = Order.find(params[:id]) # i pass it a customer