Displaying 20 results from an estimated 1000 matches similar to: "serialisation"
2006 Jul 13
1
model navigation problem with foreign key
Hi,
I have a table like this in schema.rb
create_table "ac_rooms", :force => true do |t|
t.column "roomname", :string, :limit => 50, :default => "", :null =>
false
t.column "updated", :float, :default => 0.0, :null => false
t.column "lines", :integer, :limit => 8, :default => 0, :null =>
false
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2005 Dec 23
5
Newbie question/help 2 tables, ''sync'' cell values
I have to << search for each problems.room_id=rooms.id and do
problems.room_no=rooms.room >>
HOW?
More details:
I have the following tables:
- a "rooms" table, with fields (id,room,create...)
- a "problems" table with fields (id,room_id,room_no, ...)
problem.rb has
belongs_to :room
validates_associated :room
and room.rb has
validates_length_of :room,
2007 Nov 30
2
Nested resources and _path methods
Hi guys,
I was thinking aboiut this for a while:
If I have nested resource routes, for example /building/1/floor/2/
room/
3 (building has_many floors and so on), I have to call the room_path
method like this:
room_path @room.floor.building, @room.floor, @room
IsnĀ“t there a better way to handle nested routes with foreign keys, or
can I have this method overwritten somewhere?
Greets
Jonas
2012 Dec 07
0
libnutconf: (De)serialisation methods added
?Hello everybody,
(de)serialisation methods of all the currently existing config. classes
were pushed to balooloo/nut, libconf branch:
https://github.com/balooloo/nut/commit/df8b584c7fef71741b33bff11a482a103360250e
Please note that the deserialisation methods should work, however
they are quite inefficient since they simply read the whole stream to memory
and then call parseFromString. I guess
2012 Aug 14
2
[LLVMdev] Load serialisation during selection DAG building
On Aug 14, 2012, at 2:05 PM, Steve Montgomery <stephen.montgomery3 at btinternet.com> wrote:
> Further to my earlier question, I'm perhaps a bit confused about memory serialisation. The following example, compiled using clang for the MSP430:
>
> target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16"
> target triple = "msp430-??-??"
>
2012 Oct 30
0
[LLVMdev] Proposed SelectionDAGBuilder patch - load serialisation
I posted to llvmdev a few months ago to ask for advice on the best way to avoid the SelectionDAGBuilder from imposing a constraint whereby a volatile load would be serialised relative to all pending loads. The LLVM LRM says that a volatile load only needs to be serialised relative to other volatile loads and, while it may not matter to most targets, the current behaviour of the SelectionDAGBuilder
2012 Aug 14
0
[LLVMdev] Load serialisation during selection DAG building
> No, a chain is supposed to mean "later than". It sounds like MSP430 is bending
> the rules here.
The instruction selector for ADD16mm is autogenerated, so, this is not
MSP430 bug alone :)
This is just the single target in the tree which has mem-mem instructions.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2014 Apr 11
0
Rails 4.1 activerecord_relation conversion to array problem
After I upgraded from rails 3.2 to 4.1 I am getting this error
below.
I researched that Rails 4.1 requires a conversion of an
activerecord_relation to an array using to_a. I did use to_a but looks
like rails is doing a select count behind the scenes. Do you know how to
fix this?
def index
order_type = params[:order_type]
@oh = OrderHeader.select("orders_header.*, users.username,
2007 Jan 08
1
Realtime Voicemail Table Column Name Question
Hi All,
In the realtime voicemail table the column 'customer_id' is used, for
my purpose, to specify the customers accountcode. The column name
'accountcode' is used in the iax and sip tables. To keep this
consistent throughout the tables, is there any reason I should NOT
switch the column name 'customer_id' to 'accountcode' in the voicemail
table? Does Asterisk
2012 Aug 14
0
[LLVMdev] Load serialisation during selection DAG building
Further to my earlier question, I'm perhaps a bit confused about memory serialisation. The following example, compiled using clang for the MSP430:
target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16"
target triple = "msp430-??-??"
@y = common global i16 0, align 2
@x = common global i16 0, align 2
define void @f() nounwind {
entry:
%0 = load i16* @y,
2009 May 14
3
Mysql query is not working
Please,
Can anyone help me to execute this query?
SELECT * FROM table WHERE customer_id IN (SELECT IF(1 <> 2,''SELECT
customer_id FROM customers'',''SELECT customer_id FROM company''))
Regards...
--
Posted via http://www.ruby-forum.com/.
2007 Sep 21
2
ActionWebServer and SOAPFault
I''m really new to RoR and my first task is to write SOAP web service.
The problem is that I don''t understand how to send custom SOAPFault
messages in case of the errors.
For example, I have FindCustomerById API signature:
api_method :find_customer_by_id,
:expects => [{:customer_id => :int}],
:returns => [Customer]
And controller:
def
2006 Jul 31
0
MY worker won''t stop working
> On Jul 30, 2006, at 5:11 PM, Chris H wrote:
>
>> Hi Ezra,
>>
>> thanks for the reply.
>>
>> There''s a ruby process that appears in top when I fire off the do_work
>> method.
>> It uses around 30-50% cpu and disappears once all processing has
>> completed.
>>
>> When I try to stop processing using delete_worker I was
2007 Nov 15
2
Trouble using should_receive
I have this code trying to ensure my reset method works. I want to
make sure all the participants have their destroy method called.
# in my spec for Room
r = Room.new(:name => ''bob'')
r.save
p = Participant.new(:login => ''a'', :password =>
''b'', :password_confirmation => ''b'')
p.room = r
2012 Aug 14
2
[LLVMdev] Load serialisation during selection DAG building
I looked into those patches but I don't think they will help in my situation because my problems occur during instruction selection rather than scheduling.
A simple and concrete example is a pattern like:
[(set GR:$dst (add GR:$src (nvload addr:$mem)))]
where nvload matches a load provided that isVolatile() is false.
If the selection DAG looks like:
| |
LD1 LD2
^
2007 Mar 07
4
Strange Problem With Unwanted, Transient Caching
Hello,
I hope somebody can explain to me what''s going on here because I''m
baffled!
In a controller''s action I want to create a new order for a
customer. Because I post back to the same action (not RESTful I
know, but that''s for another day) I use code like this:
def edit
@order = Order.find_by_id(params[:id]) || Order.new
...
end
I
2010 Jan 18
0
What's customer_id mean?
hi ,all
I do'nt know exactly what customer_id mean? while if i have
password i could visit the voicemail box.
CREATE TABLE voicemail_users (
uniqueid int(11) NOT NULL auto_increment,
customer_id int(11) NOT NULL default '0',
context varchar(50) NOT NULL default '',
mailbox int(5) NOT NULL default '0',
password varchar(4) NOT NULL default '0',
fullname
2013 Feb 18
6
How to clear ActiveRecord query cache on associations with dynamic table
In part of my application I''m using dynamic tables. I''m aware of the single
thread conditions. I''ve tackled some caveats yet - will post a blog about
it soon - but there''s one I need help with.
Consider 2 models that are associated: Order and OrderLine where Order has
many order_lines.
Now we set the table names for them:
2012 Aug 13
0
[LLVMdev] Load serialisation during selection DAG building
Steve,
I had created a patch last year that does something similar to what you
describe for regular loads and stores using aliasing information. I
think that the last message in the thread was:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120402/140299.html
This approach has worked for me, but it is not the preferred solution
going forward. The preferred solution is to keep the