Displaying 20 results from an estimated 110 matches similar to: "REST bug with form_for"
2006 Dec 29
2
update_attributes fails: ReadOnlyRecord
I''m trying to update a record, but it just stops with
"ActiveRecord::ReadOnlyRecord". I don''t understand why, because I never
wanted my model to be read only. Relevant code:
Controller:
def edit
@project = find_project
if request.post?
@project.update_attributes(params[:project])
if @project.save
flash[:message] = _(''Project was
2006 Apr 10
5
ActiveRecord: Behavior not doumented
Hello everbody, doing a
#find(:first,an_id)
with Rails 1.1.0 I expected that find returns the record which id mathches the
given parameter an_id or nil if it couldn''t be found.
This behaviour is documented on api.rubyonrails.org.
But the find returns the first available object and not nil if an_id is not in
the db. Is the doc on rubyonrails.org out of sync?
Greetings,
--
Daniel
2007 Sep 10
2
syntax II
Hi
Given the warm response to the syntax additions in 1.9.1 I''m considering
moving one or two more syntax extensions into core, and would like your
thoughts. Last ones, I promise. Realise we don''t want much more API
change now, but also we''ll probably also have to live with whatever we
settle on for 2.0 for a little while, so...
1) Setting up event handlers
In
2007 Sep 24
2
Asterisk 1.4.12 Release?
Hi All,
I read rumors of a potential Asterisk 1.4.12 release for last week. I
would like to start testing Asterisk 1.4 on Solaris, but, the fix for
the segfault in res_features is only in the current development trunk. I
would much rather test a release version, and as such, need to wait for
the release of 1.4.12, my question is, do we have a guestimate on when
it will be released, 1 week, 2
2018 Jan 23
1
Scraping from different level URLs website
I am doing a research on World Bank (WB) projects on developing countries. To do so, I am scraping their website in order to collect the data I am interested in.
The structure of the webpage I want to scrape is the following:
1. List of countries the list of all countries in which WB has developed projects<http://projects.worldbank.org/country?lang=en&page=>
1.1. By clicking on a
2010 Aug 19
1
Composite primary keys and :joins=>
I have a legacy db with the following simplified structure:
Table-A:
type_key, code_key, name, ... # PKs are type_key and code_key,
there is no id col and I cannot alter this db
Table-B: # each row has only the code as a foreign_key, the type_key
is hard-coded to "FOOKEY"
an_id, code, ...
Models:
class TableB < AR::Base
set_table_name ''table_b''
2006 Mar 04
13
file_column
Restricting size of an uploaded file, is how is that possible? If I
do not want a user to upload a file larger than X bytes, can it
easily be done?
If I also would like restrict the types of files that can be
uploaded, how may I do so?
Thank you,
Sharkie
2008 Oct 08
6
pci pass-through failure on xen 3.3.0
Hi all,
I downloaded the xen 3.3.0 and now testing the pci pass-through with the
NIC.
Using late binding, the pci slot 0000:08:01.0 is assigned to pciback.
But pci related xm commands are not working.
For eg:
linux-242:/home/xen-3.3.0 # xm pci-list-assignable-devices
Unexpected error: <type ''exceptions.OSError''>
Please report to
2007 Sep 17
7
Re : syntax II
Alex Fenton wrote :
>1) Setting up event handlers
>
>In most real apps, I think the most normal way to set up event handlers
>is for the event to be dealt with by a corresponding method. At the
>moment this has to be done using a block:
>
>evt_button(AN_ID) { on_button_click }
>evt_button(my_button.get_id) do | event |
> on_button_click(event)
>end
>evt_size { |
2009 Jul 16
0
Re: Xen-devel Digest, Vol 52, Issue 178
Hi, all
I want to reduce the checkpoint size of a VM by memory exclusion. I try to find out all the free pages by reference count at VMM-level, As they declared that:
/* Page is on a free list: ((count_info & PGC_count_mask) == 0). */ , in struct page_info which is defined in /xen/include/asm-x86/mm.h, but unfortunately, all the pages in a idle VM accords with this condition.
2006 Jul 03
13
Eager loading ActiveRecord objects
I have a complex graph of ActiveRecord entities that I want to load with
one big honkin'' join query to avoid ripple loading. It''s for a report.
However :include doesn''t get me all the way there because I want to load
parents of parents (or children of children). I don''t mind doing the
SQL by hand but I''m not quite sure what to do to get the result
2006 Jan 18
3
I need superman!
I have a legacy database that I can''t figure out. I''ve tried hundres of
times and spent way tooooo much time trying to figure this out. I don''t
think that rails can do it. Maybe there is a superman here who can get
this too work. I''m going to post my sql dump to produce a very simple
database. If anyone can get rails to work with this THEY WILL BE MY
2023 Aug 27
1
Query on finding root
On Fri, 25 Aug 2023 22:17:05 +0530
ASHLIN VARKEY <ashlinvarkey at gmail.com> wrote:
> Sir,
Please note that r-help is a mailing list, not a knight! ??
> I want to solve the equation Q(u)=mean, where Q(u) represents the
> quantile function. Here my Q(u)=(c*u^lamda1)/((1-u)^lamda2), which is
> the quantile function of Davies (Power-pareto) distribution. Hence I
> want to
2013 May 23
2
Looking for compiled version 1.9 of Samba
I am trying to assist a client who need a compiled version of Samba 1.9 for his SCO ODT 3.2 v4.2 environment. We are trying to connect an old version of DataFlex on SCO and need the bridge.
Anybody have an old compiled version?
Thanks
Paul Davis
Sr. Business Development Manager
CONNX Solutions - www.connx.com<http://www.connx.com/>
Direct - (425) 519-6670
Mobile - (425) 269-3956
2023 Aug 25
2
Query on finding root
Sir,
I want to solve the equation Q(u)=mean, where Q(u) represents the quantile
function. Here my Q(u)=(c*u^lamda1)/((1-u)^lamda2), which is the quantile
function of Davies (Power-pareto) distribution. Hence I want to solve ,
*(c*u^lamda1)/((1-u)^lamda2)=28353.7....(Eq.1)*
where lamda1=0.03399381, lamda2=0.1074444 and c=26104.50. When I used the
package 'Davies' and solved Eq 1, I got the
2010 Mar 11
1
Statet on Eclipse: ${project_path} is empty
Hello,
I'm tryign to use Statet on Eclipse on my Kubuntu Karmic PC. I've set
everything up and I can start the R configuration, but the working
directory is set to my home directory. If I set the start in directory
to ${worspace_loc}/${project_path} I can't start the console, with an
error that project_path is empty.
Am I doing something wrong. I feel that Eclipse and Statet
2010 Dec 03
2
Routing issue
HI,
map.connect ''/ads/'', :controller=>''ads'', :action=>''index''
map.connect ''/ads/:id'', :controller=>''ads'', :action=>''show''
The above two lines i am using for routing in my application to show a
list of ads when i visit at http:\\localhost:3000\add
and an add with the id when i
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Aug 01
2
restful controllers - howto nest with link_to?
Hi List,
I''m trying to get my grip on the restful methods that are now part of edge
rails.
Making the first steps was impressive as well as easy because there are
already great resources on the blogs of early adopters:
http://www.ryandaigle.com/articles/2006/08/01/whats-new-in-edge-rails-simply-restful-support-and-how-to-use-itand
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: