similar to: Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize

Displaying 16 results from an estimated 16 matches similar to: "Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize"

2006 Jun 10
6
table associations
First, thanks to everyone who replied to my pluralization question from before! Today I was trying to do what I think is called a "chained accessor". I have an "events" table and each event has one user. Instead of seeing the id number for each event''s user, I''d rather display the names of users instead. I tried to do this: class Event <
2005 Jan 01
1
Re: vpim: bug in icalendar.rb, Icalendar#decode_status
Thanks for the bug report! I''ll get a new release out next week, I''ve been on vacation for a few weeks and I''m just getting up to speed with being back in a city. In the meantime, the fix is to apply the following patch (in Icalendar.decode_duration). I''ve also integrated your tests, thanks. Cheers, Sam diff -u -r1.22 icalendar.rb --- vpim/icalendar.rb 17
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all, I wanted to draw some attention to a couple of very small multibyte-related patches I believe should be included before Rails 3.0 RC1: * Use String#bytesize rather than String#length in exception templates: This is a simple case where string length is checked, but bytes is needed, so it breaks with string with multibyte chars.
2010 Dec 08
1
NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)
Thanks to Rails developer team. I tried Rails3 along this guide: Ruby on Rails Guides: Getting Started with Rails http://edgeguides.rubyonrails.org/getting_started.html and I met the problem described as following. ...Any ideas? =========== Environment: =========== $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin9.8.0] $ rails -v Rails 3.0.3 =========== Steps for reproduce:
2010 Mar 25
1
Icalendar::UnknownPropertyMethod: Unknown property type: on Parsing a ical file
I downloaded the ics from http://www.thegreenerleithsocial.org/events/cleanup-the-cycle-path and tried to parse it in my rails app console: ?> cal_file = File.open("/tmp/Clean_up the Cycle Path-1.ics") => #<File:/tmp/Clean_up the Cycle Path-1.ics> >> cals = Icalendar.parse(cal_file) Icalendar::UnknownPropertyMethod: Unknown property type: website from
2007 Apr 07
0
Icalendar::Get::Common missing? / cmd-itip.sh fails on getting comment?
I am brand new to vpim, so I tried to use the example cmd-itip.sh. But it fails on the code: if e.comments with the error message: ./cmd-itip.txt.sh:113: undefined method `comment'' for #<Vpim::Icalendar::Vevent:0x101899c> (NoMethodError) In the rdoc it says there should be Icalendar::Get::Common#comment But there is no module Get in Vpim:Icalendar. There is the module
2010 Nov 04
0
namespace problem with iCalendar
i''m developing a calendar webapp for my company using ruby 1.8.7 and rails 2.3.8. naturally there are RoR models named "Calendar" and "Event" in order to send calendar events to other apps (microsoft outlook & lotus notes) i''m integrating with the iCalendar standard & ruby library. but this library contains classes called "Calendar" and
2006 May 01
0
Upload problem when file is small/StringIO (read method return nothing)
Hi I am having a problem with uploading small files. These are StringIO objects rather than temporary files as with the larger file uploads. The problem is that when it is a StringIO rather than a temporary file nothing is returned from the read method. example code where "image" is the file upload form parameter, it works fine if image is over round 19k but is it is smaller then
2006 Apr 12
0
StringIO - getting filename for multipart form uploads?
All, When using multipart forms, sometimes the files come into the controller as StringIO objects. I assume that by the time I get a StringIO object, I can''t get the name of the file the way that I might be able to using File.original_filename, correct? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 29
0
Upload problem when file is small/StringIO
Hi I am having a problem with uploading small files. These are StringIO objects rather than temporary files as with the larger file uploads. The problem is that when it is a StringIO rather than a temporary file nothing is returned from the read method. example code where "image" is the file upload form parameter, it works fine if image is over round 19k: File.open(path_1 +
2008 Mar 18
0
no marshal_dump is defined for class StringIO
Hi all, I''m newbie to ROR, anybody know why I would be getting the following error when I use paginating_find with memcache "no marshal_dump is defined for class StringIO" Im just using the plugin straight out with very default options like from the documentation. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2006 Dec 17
1
file_column error: StringIO Instead of Temp_File
Hi all, i am using file_column to upload 3 images from the same form, they are all different names and DOM IDs so there isn''t a problem with the multiple upload. The problem is when i try to upload a file (or 2, or 3) sometimes it works, but sometimes i get this in the log file: "bar_image"=>{"file_temp"=>"",
2008 Dec 30
3
integration of tzinfo with icalendar
My interest in icalendar is more on the ical generation side instead of the ical parsing side. As such, I did a bit of work on a tzinfo mixin that will generate the timezone rules based on the tzinfo gem. This lets you do the following: estart = DateTime.new(2008, 12, 29, 8, 0, 0) eend = DateTime.new(2008, 12, 29, 11, 0, 0) tstring = "America/Chicago" tz =
2011 Apr 15
1
Nested STI?
Hi, I''m having some issues when trying to nest multiple STIs. Is possible? i.e.: class Author :has_many => :posts end class Reviewer < Author end class Administrator < Reviewer class Post belongs_to :author end admin = Administrator.create Post.create(:author => admin) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 May 24
0
POST op parameters are coming in as StringIOs
I''m receiving a multipart post request from another server. The request parameters are being received as StringIOs, rather than plain strings. For instance : Processing MessagesController#receive (for 83.166.68.31 at 2006-05-24 10:36:53) [POST] Session ID: eedafb24033be0714f8133f02810083f Parameters: {"message"=>#<StringIO:0xb7503358>,
2006 Apr 03
0
N file uploads from one post - one File, (N-1) StringIOs
All, Win XP Ruby 1.8.4 Rails 1.1 I have a multipart form that I am posting with a dynamic number of file_fields that are generated on it, say N. When I post this form and look at the form params, I see one "File" object and N-1 "StringIO" objects. It appears that I should be able to manipulate these the way that I would like (file-wise), so I think it''s not a