search for: onghu

Displaying 20 results from an estimated 37 matches for "onghu".

2006 Aug 14
5
Tutorial for Queries
Hi! I''m looking for a good tutorial that explains the main points of performing queries with Rails. I do have AWDWR and have read the section on ''find'' but I''m looking for something that goes into more detail on how to perform queries across tables. Abstracted from my current application, this is an example: * person has_many sites * site has_one room *
2006 Aug 07
8
Syntax Problem
In an *.rhtml, why do I need to add <% for product in @products %> in order that I may call an <img class="list-image" src="<%= product.img_url %>"/>. Is there not another way to skip the "for product" line? I really dont want to include it. I tried @products = product but it does not work. Can anyone help shed light on this matter? -- Posted via
2006 Aug 16
6
Photo Albums?
Hello all, Can anyone recommend any free(ish) Ruby photo album components? Preferably something with a user structure built in. Cheers. -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
7
acts as drop down
Hi Im using the acts as drop down plugin and have this code below acts_as_dropdown :text => "forename", :order => "forename" It currently makes use of the forename in the option tag, how can I get it to use the surname as well ie somthing like ''forename'' . ''surname'' in php Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
8
Building a Search Page as part of CRUD
I''ve been experimenting with Rails over the past couple of days and have come across something that seems harder than it should be. In previous frameworks I have used (WebObjects, php) a full search page (which leads into a list view populated with search results) was part of the CRUD that was either dynamically or statically created after specifying table/object schema. In
2006 Aug 09
10
Next/ Previous record
Hi, Quick question (which means that I think there should be an easy answer)... When I am in the "show" view, I''d like to add 2 links, one for previous and one for next record so that the user can go on to the next "result" without having to go back to the ''list'' of results. However, I can''t find my way about this problem :-S
2006 Aug 05
3
Four Days on Rails
I''ve been reading the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears: <%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : "&nbsp;" %> it always returns the
2006 Jun 28
2
Ruby/ RoR for Windows app + Web
Again, I find that I''m stumped trying to concisely attach a subject to my query... Sorry about that :-S Also, I apologize if the query is a bit off-topic, but I hope that it is relevant! Anyway, the recent thread about the "Ruby CronJob" got me thinking. We have an application that requires to read data from a device connected to the serial port of a Windows machine. The
2006 Aug 07
12
web app or ''real'' app
Hi there, Is a web app always preferable to a ''real'' app? - or are there times when a real app should be used? I''m starting a new app and can''t decide which would be best. Is Ruby (not RoR) suitable for a real app? Chris. -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
5
ActiveRBAC?
How''s the experience with using ActiveRBAC? For my "next 4 days with rails" :P I''d like to consider adding Role-based access to the To-Do List application in the original "four days w/ rails" tutorial. Just wondering if ActiveRBAC would be a good place to start? Thanks! For those who are wondering: https://activerbac.turingstudio.com/trac Cheers Mohit.
2006 Jun 09
1
Organising singapore.rb
I''m toying with the idea of organising a Ruby User Group for Singapore, hence, singapore.rb. I just want to find out who would be interested in participating in this. Also, I would really appreciate pointers on organising something like this. -- Practical_Guile::Clever_Tagline::Pending http://practicalguile.com -------------- next part -------------- An HTML attachment was scrubbed...
2006 Jul 29
4
good css based website layouts for download???
Just wondering if anyone knows of a site where one could review a number of website layouts (which use CSS concepts) where you could then select the one you want and then just download the template HTML and CSS to import directly in your application. i.e. Gives you a decent overall look and feel straight away and then you can concentrate on your actually dynamic application aspects. Cheers
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design of my site, I don''t have room to put the word "username" in front of the text field so I''d like to actually display it inside the field and then have the word clear when the user clicks on it. How could I modify something like this <%= text_field "user", "login", :size
2006 Aug 07
4
Problem with Pagination
Hi Guys, I am trying to paginate the results from a search. When I use actual constants in the search conditions, it works fine: def query @k2_result_pages, @k2_results = paginate (:k2_results, :conditions => [''e_date >= ? AND e_date <= ?'', ''2006-07-12'', ''2006-08-12''],
2006 Aug 14
2
Change password
Is there an addition to the Rails Recipe or the method in AWDWR to allow a user to change his/ her password? I have put something together that does all the work again - mostly because I''m not sure how to leverage on methods like ''password='' that are defined in the model. Has anyone got a ready sample that I could learn from? Right now, I''m basically
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone, I''m a rails & ruby nuby, and this is my first post to the list. Here''s my environment in case it helps diagnose my problem: Ruby version 1.8.4 (powerpc-darwin8.6.0) RubyGems version 0.8.11 Rails version 1.1.2 Active Record version 1.14.2 Action Pack version 1.12.1 Action Web Service version 1.1.2 Action Mailer version 1.2.1 Active Support version 1.3.1 I did
2006 Jun 13
8
Joins or relationships ?
I have a table called Post (not the actual name) where users input various piece of information, Most of the input is done by dynamic select''s (drop downs). As an example: User would choose Field: Input: Values that go into Post table Category Full Time 2 Length 45 Days 4 State
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting toolbar that will be added to all of your text areas that utilize the TEH feature. TEH was developed to provide a more WYSIWYG-ish option for users of our Rails CMS called slate while still letting us use Textile. ====================== = So what are the features? ====================== These are a list of the current features
2007 Apr 15
6
I'm new to Ruby On Rails...
Hi, guys. I''m so happy to join this group. I''m new to ROR. And I haven''t learned or used any other program langueage before. I''m intrest in develop web-based database-driven prgramming. My company need to develop a bussiness management system recently. I wanna use ROR for a try. So, where should I start? In another words, what books or resources should I read?
2006 Jul 25
12
DRYing - similar named fields, etc.
I''m sorry - just couldn''t come up with a subject that describes the problem :( Anyway, this is my problem. I have a long list of fields that need to be displayed when a ''show'' is requested on the controller. I''m now doing the list.rhtml and looking for a DRY way to do the following. For each data item, I have 2 fields - one is the item name, the