Displaying 4 results from an estimated 4 matches for "localized_string".
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
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 Aug 02
3
using migration--newbie
...#39;'m new with RoR) I''m using a migratio to import data into a database
but nothing is being happens. I''m importing strings from a parsed file.
this is what I have:
controller:
class UploadController < 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 &l...
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
...m I missing something?
6. Why does the following output say @new_record=false even when the record was created? Is it to prevent further entry of the same record?
Loading development environment.
./script/../config/../config/../lib/localization.rb:5: warning: already initialized constant LOCALIZED_STRINGS
>> f=Favorite.create(:url=>''http://home.com'', :title=>''Home Pages title'', :desc=>''My note about this favorite'', :created_at=>Time.now)
=> #<Favorite:0xb6f5d594 @new_record=false, @errors=#<ActiveRecord::Errors:...