similar to: Displaying Hours

Displaying 20 results from an estimated 100 matches similar to: "Displaying Hours"

2006 May 09
3
How to transfer variables from one page to another page ?
Hi, In my application I want to tranfer a variable (store_id) from one page to next without putting it into session. How should I do this? Is there any way to transfer variable from one to other page using methods other than sesion? Thanx Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 06
6
Linking two tables using a lookup table
Hi, How do I associate two different tables which have a lookup id (table) as common. I tried the has_many :table2, :through => look_up_table in my table1 model. Any hints? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
1
How to get result of following SQL Query in Ruby?
Hi, I have 2 tables as follows:- _________________ ________________ ____________ taggings | |stores | | tags | -----------------| |---------------| |------------| --tag_id | |--store_id | |tag_id | --store_id | |--store_name | |tag_name | --user_id | |---------------| |------------| -----------------| Now I want to execute
2010 Aug 02
7
Complex associations
I am working on a project that has some complex table associations, and I am having a hard time declaring this association in a Model, and fear it can''t be done. Here is an example of my issue... class StoreType < ActiveRecord::Base; end class Store < ActiveRecord::Base; end class Department < ActiveRecord::Base; end class Product < ActiveRecord::Base; end A StoreType has
2006 May 23
5
text_field_with_auto_complete
I am having some trouble using `text_field_with_auto_complete'' in Firefox. For some reason, the drop-down list is being rendered behind other table elements. Firefox (broken): http://schema.ca/broke.png Safari: http://schema.ca/safari_works.png I''m wondering if anyone is aware of this problem, and what I might be able to do to work around it? Thanks, -Mike
2006 May 26
8
What is the different between Scaffold / Controller / Model
Hi everyone I am learning RoR now and got a question. What is the different between using ruby script/generate <Table> Scaffold / Controller / Model? Thank you Victor -- Posted via http://www.ruby-forum.com/.
2006 May 25
8
Looking for AOL, MSN, Yahoo "Rails Buddies"
I''m an independent software developer that spends a fair amount of time each day working on Rails-related project. t''d be really great to meet some people to chat about rails, software development, or whatever else geeky stuff via IM! If interested, shoot me an e-mail or reply here. Personally, I''m a little apprehensive about putting all my info out there on a list
2006 May 24
12
Analog to ruby script/generate for removing generated stuff?
All, If I do ruby script/generate model blah, is there an easy way for me to remove all of that stuff that got generated? Something like: ruby script/remove model blah? If it doesn''t exist, is it coming? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 May 26
5
MySQL Editor
Got an easy question. What is the GUI editor used in the tutorial videos to edit the mysql database? -- -- Jason K _ = -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060526/e75e6029/attachment.html
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following examples I''ve seen all over the web, but I am getting an error. My code seems simple: def list @upload_pages, @uploads = paginate :uploads, :per_page => 20, :order => ''id'' end Yet I keep getting this error: ___________________________________________
2006 Jun 02
2
pass extra value through text_field_with_auto_complete?
Hi, I''m wondering if it is possible to pass an extra value (which I will use to further restrict my query) using text_field_with_auto_complete? Any suggestions would be appreciated! -Mike
2006 May 30
7
RailsConf in London
<gloat>Well, that''s me booked in for RailsConf in september :0)</gloat> Who else is going? Steve
2012 Jun 16
1
searching on model and related attributes
Hi all, Haven''t played with rails for a while so I''m a little stuck. I''ve got to make a search functionality across models. Let me try to explain this (sorry for lack of clarity, I''ve been reading so many search gems etc that I''m a little fuzzy now): * Stores have town and county fields * Stores has_many Products which each have their own name and
2006 May 27
36
Might be buying a Mac
I might be buying a Mac tomorrow. I checked out the new 13.3in MacBook at the new Apple Store on 5th ave in NYC. I''m torn between the smaller MacBook and the MacBook Pro. We have a pro at work and I''m not that thrilled with the way it feels. I like the keyboard much better on the 13inch. However, I think doing development on that small of a screen could get frustrating. Any
2006 May 26
9
What syntax is this? belongs_to :Person
so when I''m reading the pick axe book second edition I don''t see anything like the syntax you see people using in rails code. Specifically when you see. belongs_to :Person has_many :Phones etc these are methods on ActiveRecord right? Why is this invocation syntax never described in the Pick Axe book? I do see things like attr_reader :some_attribute etc but you
2006 Aug 04
4
RSS feeds
Hi all, Can anybody tell me how we can create RSS feed using Ruby on Rails. How do I go about constructing this RSS file? Can I find an example in any site? regards, Prasad -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
3
Pagination
Does anyone know if there''s a plugin to do pagination numbers like: Prev 1 2 3 4 5 etc Next And automatically move through the pages? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
3
has_and_belongs_to_many find
Say I have a post model that has_and_belongs_to_many :categories, and a category model that has_and_belongs_to_many :posts. So I have a categories_posts table to do the join. That''s all find and dandy. However I want to be able to find all the posts that belong to a specific category. I tried Post.find_by_category(:id) but that doesn''t work. Does anyone have any insight?
2007 Oct 14
0
naming join models for has_many :through
Hi, I''m having trouble naming my join models. The tables in question are: - stores (list of company branches / stocking locations) - items (inventory items) - items_stores (item xyz is stocked by store_id 7, their re-order point is 10, their sales price $27.50) - items_locations (store_id 7 keeps part xyz on shelf B252) While I believe items_stores would be proper naming for a
2006 May 04
3
Decimal
Can someone please tell me the best approach to adding support for editing MySQL decimal types in rails? I have a field in the DB that represents currency, and the view will not let save anything past the decimal place so, 10.99 becomes 10.00 automatically. Any help is appreciated. -- Posted via http://www.ruby-forum.com/.