search for: yangguang

Displaying 8 results from an estimated 8 matches for "yangguang".

2007 Aug 12
10
about chinese display
hello: I have built a project with Instant Rails.Now only a database and a scaffold based on a product model have finished.But when i inputted "../admin/list" in my browser,i found my chinese characters cound not display normally.Then i made five steps: 1 ajusting encoding in my browser menu 2 in "C:\InstantRails\conf_files\my.ini"directory,making sure
2008 Mar 03
9
mutiple select
Hello: How do i make a mutiple select list for "nomodel" objects?I made that by using something like:<select name="" multiple="mutiple"><%=option groups collection for select(....)-%></select>.But when i select mutiple items and submit them,I can only get one selected item? Who can help me? -- Posted via http://www.ruby-forum.com/.
2010 Sep 24
4
invalid argument for file creating
hi I use song_title to creat a file named by song_title.I have many song titles to create many files.but unfortunately,some of song titles contain special characters,such as [ ,which leads the following error: ##### Errno::EINVAL in Lyric spiderController#scrap_one_category Invalid argument - e:/rails/lyric/public/song/e/Energy/ [ar:Energy.lrc ##### I use the following codes to create and write
2008 Jul 14
1
about string error for upload file in rails 2.1
hello: I have code for upload image file to server file system.This works in rails 1.2.3.But in rails 2.1,it gets an error. The following is the important code: In a view: <%form_for :user,:url=>{:action=>"register"},:html=>{:multipart=>true} do |f|-%> <p> <label>照片</label> <%=f.file_field "file"-%> </p>
2008 Oct 07
1
about displaying chinese in mysql
how do i display chinese correctly when query the data of the mysql database in the demand window? My application works well for displaying the chinese,but in the demand window , it can not display chinese correctly when i want to look over the initial mysql database table. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message
2010 Sep 18
0
lyric data store and search
hi I have many lyrics which are originally binary format.I need to store them and let users to search them. 1 But i don''t know where to store them? using filesystem or database? I think it is better choosing database because it is easier for me to implement search function. Am i right? 2 I can store binary data into database,but it is binary looking.when implement search function or
2008 Apr 16
2
about getting webservice from other website
I have a webservice offered by a website to be integrated for my website.They ask me to follow three steps to finish integrating.These steps are: 1. Create an HTTP connection. 2. Send request parameters via POST method. 3. Parse XML-formatted response string. The request parameters are something like following: "Version=2.0.0.0" + "&ShipmentID=1234" +
2011 Mar 18
6
how to rescue this exception
hi,i don''t know how to capture the following exception if the file directory or name is not correct. ########## def index @csv_array=[] begin CSV.foreach(''files/sample.csv'') do|row| sub_array=row @csv_array<<sub_array end rescue Exception=>e flash.now[:error]="error:#{e}" raise end end ######### after