Displaying 20 results from an estimated 5000 matches similar to: "Newbie question: Dynamic view creation from obj.to_html_form"
2011 Aug 25
1
Question about object permanence/marshalling
Hello,
I am trying to write some code that dumps R objects to the harddisk in a binary format so they can be quickly re-used later. Goal is to save time. The objects may be quite large (e.g. classes for a GUI). I was thinking that save() and load() would be suitable for this (until now I only thought it could be used for 'real' data, e.g. matrices, data.frames etc), but I am hoping any
2006 Mar 28
6
blank page output
Hello, I''m new to Ruby and RubyOnRails. I''m running Fedora 4 which comes
with Ruby 1.84-1. I installed rubyonrails, and I''m doing the a sample
program found on
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2
I ran ruby script/generate controller MyTest. I edited the file
my_test_controller.rb. Here''s the code I entered
class MyTestController
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all,
I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The
problem seems to be that I have a several-action process to create a
Booking. This Booking is stored in the session (session[:booking] =
@booking) throughout the actions until the last action is reached and
the record is saved to the DB.
Using TimeWithZone seems to be producing errors when trying to
2007 Aug 17
1
Cookie Sessions in Merb?
I like the cookie sessions that Rails edge has - they make sense,
they''re fast, easy.
For those that don''t know: the default session mechanism is to give
developers a Hash called session. To store this object between
requests it Marshals the session object and sends the object itself
(now as a bitstream) back to clients to store in their cookie file. To
prevent users from
2006 Apr 26
5
remote ruby
I''m building a collection of desktop app''s and want to use ruby, and
Active Record in particular, as an intermediary layer to my
databases. I''m not sure how to connect my development environment,
Runtime Revolution, to Ruby and Active Record.
One option is to just set up a RonR environment and have my app''s
make calls that return regular text results
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
Puppet Dashboard 1.2.23 is a maintenance release of the 1.2 series of
Puppet Dashboard with bug fixes and minor features.
This release is available for download at:
https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.23.tar.gz
Available in native package format in the Puppet Labs yum and apt
repositories at:
http://yum.puppetlabs.com and http://apt.puppetlabs.com
Please report
2006 Sep 03
18
Recommentation: Sessions and PStore
Morning Folks,
As most of you know there were a few people who had the following three
bugs:
* CLOSE_WAIT: Lots of sockets in CLOSE_WAIT state.
* 99% CPU: Mongrel''s getting "stuck" pegged at 99% CPU.
* LEAK: Memory leak.
I''ve successfully fixed these bugs or attributed them to one main cause:
pstore.
First, the memory leak was because of a bug in how the GC in Ruby
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
Hi All,
I get this strange problem with newly scaffolded apps - I''d really
appreciate any help in this regard.
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:46:in `block in secure_compare''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:45:in `each''
2006 Oct 11
5
Marshal Data too short error with ActiveRecord sess. storage
I''m seeing a "marshal data too short" error with an ActiveRecord store
for my session data.
Other posts say that this happens when the size of the session data
exceeds the size of the "data" column in the sessions table. But my
"data" column is a TEXT field so it seems unlikely that I could have
blown it out.
Has anyone else seen "marshal data too
2008 Feb 07
3
Sharing Sessions between Ruby on Rails and PHP
Hi there,
I have a RoR app but for one of the funcationality (photo uploads) I
am using PHP. I need to know how I can share/access session
information from RoR in PHP since the PHP also updates the database
and the entry information is contained in the RoR sessions.
Please advice.
Thanks in advance.
Adil
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2007 Jan 21
1
Weirdness when save symbols to AR string fields
I have a model foo with two fields: id and string. When I try to save a
symbol into that string field I get weird results:
>> foo = Foo.new(:string => :foobar)
>> foo.string
=> :foobar
>> foo.save
>> foo.string
=> :foobar
>> foo = Foo.find(foo.id)
=> #<Foo:0x467282c @attributes={"id"=>5, "string"=>"---
2009 Jan 10
3
install.views()
Dear Rxperts,
Using R 2.8.1 and trying
install.views("Cluster")
getting error
Error: could not find function "install.views"
Please help:-(
--
Oscar
Oscar A. Linares
Molecular Medicine Unit
Bolles Harbor
Monroe, Michigan
[[alternative HTML version deleted]]
2006 May 19
1
Strange error when testing layered web service
Hi all,
Ruby 1.8.4
Rails 1.1.2
1) Error:
test_find_hardware_by_id(HardwareControllerApiTest):
ArgumentError: illegal refid http://test.host/
c:/ruby/lib/ruby/1.8/soap/baseData.rb:166:in `decode''
c:/ruby/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:153:in
`decode_tag''
c:/ruby/lib/ruby/1.8/soap/parser.rb:179:in `decode_tag''
2007 Aug 15
10
Objects in Session State Revisited
Hi Folks,
I''m still a bit confused about the issue of storing "complex" objects
in session state rather than storing simple objects.
It''s my understanding that everything is an object in Ruby. If my
understanding is correct, then storing a string or an integer in
session means storing an object.
It would seem then that the problem of storing objects in session is a
2007 Dec 29
2
needs to have method `_load'
I''m getting an exception that I''m fairless clueless about. It occurs
when I run a "create" action but neither my action or before filters
are hit before this exception. I''m hoping someone can give me a clue.
I suspect it has to do with marshalling objects in the session - maybe
TzTime is not capable of being stored in the session. I hope that''s
not the
2007 Apr 17
5
How to change the default encoding for dynamic pages
Hello,
I''m trying to write a rails application serves by mongrel and using
accentuated characters in the .rhtml page. But Mongrel replace them by ''?'' .
It works fine for static pages by defining the charset to iso-8859-1 in the
mongrel_mime.yml
But how to change the default encoding (seems to be UTF-8) for the dynamic
pages ?
thanks for your help.
-------------- next
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all,
I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves.
That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2007 May 04
5
[ win32utils-Bugs-10589 ] Bug in win32-mmap
Bugs item #10589, was opened at 2007-05-04 12:01
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=10589&group_id=85
Category: win32-mmap
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Daniel Berger (djberg96)
Summary: Bug in win32-mmap
Initial Comment:
Ruby 1.8.6
win32-mmap 0.2.1
Assigning
2003 Apr 04
3
AT&T T1 Cable Needed!
Hi,
I just got a T1 interface for a AT&T (became Lucent) System75 (uses same
cards as Definity). I would take a crack at making a cable but can't
determine the pinout for a cable and it is not apparent from the board.
Asking you guys makes sense as one of you may have one of these systems. The
cable has a amphenol male D50 connector on one end and probably a rj45 on
the other. I also
2011 Oct 26
8
IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type
Backstory: I''m trying to use DRb for some in-house utility code. DRb
itself seems to work fine, but I found that when I misspelled a method
name, instead of reporting back a NoMethodError, the IronRuby process
crashed immediately to the console.
This is using a relatively recent build of IronRuby from Github
Steps to repro:
e = RuntimeError.new ''xyz''
dumped =