Displaying 3 results from an estimated 3 matches for "localizedstr".
2006 Aug 02
3
using migration--newbie
...ploadController < ApplicationController
def create
table = { }
params[:localized_string][:data].each_line do |line|
if line =~ /^\s* " (.*?) " \s* = \s* " (.*?) "/x
table[$1] = $2
end
end
table.each do |key, val|
LocalizedString.save(:key =>key, :value=> val)
end
end
end
model:
class LocalizedString < ActiveRecord::Base
end
view:
<h1>Importing Strings<h1>
<%= start_form_tag({:action => ''create''}, :multipart => true)%>
<p>
<b>Path: <...
2006 Jul 31
10
nothing uploads.....why? (newbie question)
Hi everybody,
I know this is an easy question but I don''t seem to see the solution.
I''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>
2006 Jul 21
1
Newbie Question about Ruby on rails---cant upload data
Hi everybody,
Ruby on Rails is my first programming lenguage...it looks to me like i''m
missing the big picture. I''m trying to upload a file into a database.
In my app. my user needs to select a file and upload it...however I only
want him to upload certain information from that file. I have written
code to parse only string tables from that file. For example, the table