search for: boxuk

Displaying 17 results from an estimated 17 matches for "boxuk".

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 Jun 01
4
can''t convert Fixnum into String ??
I have been getting this error message on various pages, just wondering if anyone could explain whats going wrong, and the best way to correct it code that is cuasing the problem is below @project = Project.find(:first, :conditions => "id = " + @purchaseorder.project_id) -- Posted via http://www.ruby-forum.com/.
2006 May 08
4
set forign key
hi, got a small problem below and not to sure how to overcome this using rails two tables involved with this projects and quotes each project has a field quote_id as a forign field. When a user is ready to upload a quote they are linked to quotes/new from the show project page. Once the quote is uploaded how can I then set the quote_id field with the correct key? -- Posted via
2006 May 10
2
gain value from form
I have the following form <%= start_form_tag :action => ''rejectQuoteSave'', :id => @project %> <p><label for="offer_reason_rejected"><span class="required">* </span>Reason</label><br/> <%= text_area ''offer'', ''reason_rejected'' %></p> <%= submit_tag
2006 Jun 05
2
Pagination, how to in rails?
Hi, Im creating a few reports for a system using ind_by_sql Are there any built in features that I can use to paginate the results and how can this be achived? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
5
apply more than one condition to a find(:all
Hi I have the find statement below, how can I apply another condition to this to say AND status > 3 @projectReport = Project.find(:all, :conditions => ''status != 7'') Thanks scott -- Posted via http://www.ruby-forum.com/.
2006 May 09
2
retrieve previous id
Hi, I have this piece of code, if @quote.save flash[:notice] = ''Quote was successfully created.'' #return id of preiously inserted quote #enter this id in the correct related project field redirect_to :action => ''list'' end How can I return the id of the saved data? -- Posted via http://www.ruby-forum.com/.
2006 May 12
4
default value in text field
hi, This should be really simple, but i cant seem to find the answer anywhere!! In my _form.rhtml I have the following text field, how can I define a default value? <%= text_field ''purchaseorder'', ''number'' %> -- Posted via http://www.ruby-forum.com/.
2006 May 09
7
going crazy!!!!!! ActiveRecord::StatementInvalid in Project
any suggestions on why I am gaining this error. ActiveRecord::StatementInvalid in ProjectsController#create Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , , )'' at line 1: INSERT INTO projects (`name`, `date_created`, `quote_id`, `client_id`, `description`, `user_id`)
2006 Jun 05
3
output an array
Hi I have an array in a helper method and I want to oupt the contents to the screen, so i can see waht array key''s are avalible How can this be done? -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
1
Format Values from a date_select
Hi I have two date select options in a form, when I try and grab these values using somthing like @pMax = params[:max] I get this in the varibale name max(1i)2006max(2i)6max(3i)5 which has the correct data, jsut with added things like max(1i) Whats the best way of grabbbing this data into a variable without the extra titles? Scott -- Posted via http://www.ruby-forum.com/.
2006 Jun 06
4
change 1-06-2006 to 1st July 2006 (date formatting)
Hi, I have a few dates coming from the datebase in the format ''DD-MM-YYYY'' How can I change this in to a more human readable format? such as 1st July 2006 Thanks Scott -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
2
date select box''s
Hi I have the following date select box <%= date_select ''min'', ''min'' %> When you submit a date, it re-loads the page with the same date select box, but displays todays date, no matter what you submitted before. How can I get it to re load with the submitted date. Thanks Scott -- Posted via http://www.ruby-forum.com/.
2006 May 12
1
auto complete a text field
Hi, Im looking for a way to autocomplete a text field, I have found this, http://wiki.rubyonrails.com/rails/pages/HowToUseAdvancedAutocompleteFeatures but at the top it says "Note that there?s easier ways to do this built into newer versions of Rails, this was written in the early days of the framework. If I get a chance, maybe I?ll update." Any ideas where i can find some info on
2006 May 31
1
find by sql
Hi I have the following code, which makes use of an sql statment to get the results required. However this just doesnt seem right for rails, as ive managed to develop the whole project without using any other pure sql. Is there a cleaner way of doing this, but gaining the same results. thanks scott #sql to find all invoices pSql = "SELECT DISTINCT invoices.id,
2006 Jun 08
9
find :order =>
Hi, I have the following find statment @client_pages, @clients = paginate :clients, :per_page => 20, :order => "organisation_id, surname" currently im ordering by organisation_id however I need to order by the field in the organisation table organisations.name how can this be done? Thanks Scott -- Posted via http://www.ruby-forum.com/.
2006 May 11
5
crating a ajax datagrid
hi, Im looking to build a live data grid, where you can add delete rows using dhtml. and was just wondering if anyone is aware of any plugin''s taht may help me. Ive found this example but if anyone is aware of any other plugin''s please let me know http://unspace.ca/datagrid/update thanks scott -- Posted via http://www.ruby-forum.com/.