Displaying 20 results from an estimated 55 matches for "facades".
Did you mean:
facade
2006 Aug 19
5
Form helpers don''t work with facade columns?
Hello all,
I''ve been trying to use a facade column but I notice that the form
helpers don''t seem to respect the facade.
In the following example I''m trying to story the prices as Integer
values but present them to the user as decimals.
class Product < ActiveRecord::Base
def price=(new_price)
write_attribute(:price, Float(new_price)*100)
end
def price
2006 Aug 01
0
Validation of facade columns
I''m having difficulty understanding how to make validation of facade
columns consistent with validation of other active record columns. To
illustrate this, I''m going to extend the facade column example
discussed on pp. 284-5 of AWDR. Let''s say that there is a "rectangles"
table that has width and height columns. For some unknown reason,
width is stored in
2006 Mar 02
6
Newb question about facade columns
Hello,
I am trying to deal with a database table that contains a date in the
form of the number of seconds since epoch. Data is inserted in this
format by an existing script that I can''t change, so a schema change
isn''t realistic.
I would like to allow humans to view and edit this data in the form of
an actual human-readable date. I figured a facade column would be the
2006 Jun 01
2
Hiding an attribute
I am using a smallint database column to store several boolean flags.
The flags are accessible thru facade column accessors. I''d like to
hide the database column so all access is thru the facade accessors.
How do I do it?
TIA,
Jeffrey
2009 Jun 09
6
[LLVMdev] Regular Expressions
On Tuesday 09 June 2009 04:35, Török Edwin wrote:
> On 2009-06-09 12:27, Howard Su wrote:
> > This change break the MSVC build since no regex by default in Windows
> > MSVC platform.
>
> Perhaps we should add a regex implementation to lib/System?
That's potentially a lot of work. I started looking at it and it would
involve hiding the OpenBSD library under some other
2009 Jun 09
0
[LLVMdev] Regular Expressions
> On Tuesday 09 June 2009 04:35, Török Edwin wrote:
> > On 2009-06-09 12:27, Howard Su wrote:
> > > This change break the MSVC build since no regex by default in Windows
> > > MSVC platform.
> >
> > Perhaps we should add a regex implementation to lib/System?
>
> That's potentially a lot of work. I started looking at it and it would
> involve
2006 Mar 17
2
SOA on rails...
We are in the process of evaluating new development frameworks for our
future development platform. We currently use php and are evaluating
Java, Ruby, Mono and .NET.
We really like Ruby but unfortunately, we are having a hard time
implementing our layered Service Oriented Architecture using Ruby due to
the view being tightly bound to the ActiveRecord objects.
Although we love all the great
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All,
I''m finally doing my first real form in Rails - the model object that
I''m entering information for has 8 validations so far.
If I type in good values for all the fields but one, I get the pretty
validation, and the nice field highlighting, but all of the fields are
cleared, forcing me to retype all of that info. That is a big drag.
Is there a standard way to get the
2004 Jul 05
3
Randy Bush is a destructive force with a hidden professional agenda
. Monday, July 5, 2004
15:50:06 (-08:00hrs UTC)
Hello asterisk-users,
From the following post:
On Mon, 5 Jul 2004, Joe Baptista wrote:
> On Mon, 5 Jul 2004, Randy Bush wrote:
>> i did not criticize the protocol. remember, my question started
>> with
>>
>> >> i am looking at iax to
2011 Jun 12
7
installation of Office 2007 under Arch x86_64 fails
Running x86_64 with multilib enabled and am unable to install office 2007 to a fresh wineprefix.
Code:
$ export WINEPREFIX=/home/facade/.wineprefix/office
$ wine /media/dvd/setup.exe
wine: created the configuration directory '/home/facade/.wineprefix/office'
err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: cannot open shared object
2009 Jun 09
0
[LLVMdev] Regular Expressions
On Tue, Jun 9, 2009 at 12:00 PM, David Greene<dag at cray.com> wrote:
> On Tuesday 09 June 2009 04:35, Török Edwin wrote:
>> On 2009-06-09 12:27, Howard Su wrote:
>> > This change break the MSVC build since no regex by default in Windows
>> > MSVC platform.
>>
>> Perhaps we should add a regex implementation to lib/System?
>
> That's
2006 Feb 04
1
Issues with sending HTML email
Hello,
I am using the SaltedLoginGenerator. Everything is working fine except the e-mail is being sent out as text instead of text/html. I have tried changing the Content-Type to text/html but to no avail.
I even tried changing the Content-Type in tmail/facade.rb but it didn''t help.
What am I missing? How can I get ROR to send a HTML email.
Thanks
Frank
2006 Apr 20
5
Integrating with Legacy Databases
This seems like it must have been asked before - I really _did_ try to
find it in the archives, so my apologies if it''s already out there.
Utilizing ActiveRecord, I would like to specify a prefix for the
column names in my table. For example, in ''Recipe 16 Integrating with
Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal
with integration with a
2008 Nov 19
3
Using third-party dlls
I am in the process of trying to port a Windows library to Linux (maybe also to Mac, but let's not get ahead of ourselves). The existing library is essentially a facade layer to a number of third-party dlls (mostly COM-based, although one is .NET-based) over which I have no control. These third-party dlls have no UI of their own. Their purpose is to allow access to proprietary data formats.
2006 Jul 17
6
Best Practices: Splitting the "view model" from AR model
All,
I''m starting to see view state information creeping into my model class.
For example, I have text fields in my view that need to be set a certain
way depending on whether or not a checkbox is checked. And while the
values of these text fields ultimately do represent database columns
that are related to the backing AR object, the text_field values also
represent attributes on a
2015 Jun 17
3
[LLVMdev] design question on inlining through statepoints and patchpoints
I've been looking at inlining invokes / calls done through statepoints
and I want to have a design discussion before I sink too much time
into something I'll have to throw away. I'm not actively working on
adding inlining support to patchpoints, but I suspect these issues are
applicable towards teaching LLVM to inline through patchpoints as
well.
There are two distinct problems to
2006 Jul 13
4
Does text_field go directly to attributes hash in AR object?
All,
I''m having a hell of a time figuring out what is going on here.
I''m trying to override one of my getters so that I can format it a
certain way in my form. But I can''t seem to get text_field to call the
appropriate method on my object.
So here''s my getter:
public
def FAX
fax = read_attribute(:FAX)
puts fax
2020 Mar 25
4
Multi-Threading Compilers
On Wed, Mar 25, 2020 at 8:52 AM Doerfert, Johannes <jdoerfert at anl.gov> wrote:
> I think the solution space for the value/use-list issue might be larger
> than what was mentioned so far.
>
>
> Some random thoughts:
>
> If no pass ever walks the use list of a constant, except globals which
> we could handle differently, we could get rid of their use-list or
>
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15.
Here are the errors:
gregg@gregg2 ~/user/DMS $ rake test
(in /home/gregg/user/DMS)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:2: warning: method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:11: warning: method
2007 May 01
1
The unbelivable Civilizations of the World
The unbelivable Civilizations of the
World<http://mega-structures.blogspot.com/2007/03/unbelivable-civilizations-of-world.html>
The unbelivable Civilizations of the World
<http://mega-structures.blogspot.com/>
<http://mega-structures.blogspot.com/>
''Chaco Canyon Indian ruins, NM, circa 1060, The Center of
...<http://mega-structures.blogspot.com/>