search for: stringrecord

Displaying 3 results from an estimated 3 matches for "stringrecord".

Did you mean: string_record
2006 Jul 27
7
Newbie question---
I wrote a ruby script that parses a file into key-values like so: class Parser table = { } IO.foreach(''Localizable.strings'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x table[ $1 ] = $2 end } end I want to store the key-values in different colums on my database so that when I enter a key, it gives me the corresponding value...how
2006 Jul 31
10
nothing uploads.....why? (newbie question)
...''m trying to have a user select a file so that my code can parse it and populate the database with corresponding values. So far it seems like uploads but nothing shows in my db. Can anybody give me a hand? thanks view: h1>Importing Strings<h1> <%=error_messages_for("StringRecord")%> <%= start_form_tag({:action => ''create''}, :multipart => true)%> <p> <b>Lenguage:</b><br/> <%= select("variable", nil, @array_of_lenguages) %> </p> <p> <b>Path: &lt...
2006 Jul 28
0
newbie----what''s wrong with my code
...<b>Path: </b><br /> <%= file_field ("string_record", "import_strings" )%> </p> <p><%= submit_tag "Import"%></p> <%= end_form_tag%> my save method in my controller: def save @string_record = StringRecord.new(params[:string_record]) if @string_record.save redirect_to(:action=>''show'', :id =>@string_record.id) else render(:action=>:get) end end this is my active record class: class StringRecord < ActiveRecord::Base def import_strings table = { }...