Displaying 20 results from an estimated 8000 matches similar to: "Active record confusion"
2006 Jul 20
16
Juggernaut Released - (a.k.a Armageddon)
I''ve just released Juggernaut - a plugin for ruby on rails.
Check out the site: http://juggernaut.rubyforge.org
I?ve also finished a demo that illustrates some of Juggernuat?s
capabilities. You can sign up for an account here:
http://alexmaccaw.no-ip.info:3500/login/sign_up . It might be a tad slow
as it?s running from my home machine.
Juggernaut for Ruby on Rails initiates a flash
2006 Apr 15
19
Trouble with Lighty
I''m trying to setup my rails application with Light+fcgi.
This is the error I''m getting when I try to start Lighttpd :
============
[getcapture@alpha getcapture]$ ~/etc/rc.d/lighttpd.sh start
Starting Lighttpd
2006-04-15 11:27:24: (mod_fastcgi.c.1022) execve failed for:
/home/getcapture/application/public/dispatch.fcgi No such file or
directory
[getcapture@alpha getcapture]$
2006 Jun 19
9
Railsday 2006
Can you guys post a demo of your application ?
Would be great.
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2006 Jun 08
4
weblog.rubyonrails.com - needs upgrade ?
Last 2 articles have 500+ comments.
Also, whenever I comment, it never appears immediately.
It terribly needs an upgrade.
-Pratik
--
rm -rf / 2>/dev/null - http://null.in
2006 Jul 06
5
Single table inheritance
I''m having a class called Person, with subclasses as goalkeeper,
forward, defender.
Now a person can be a forward as well as a defender or a goalkeeper.
I want to use single table inheritance like :
class Goalkeepr < Person
end
And not have multiple boolean columns like in my people table like is
is_goalkpeer, is_forward, is_defender.
How do I go about it ?
Thanks,
Pratik
--
rm
2006 Jun 30
3
@foo = Bar.new(params[:foo])
While doing @foo = Bar.new(params[:foo]) in a controller, the
application is open to injection attacks.
For example,
My model has following attributes :
name
password
admin - boolean
Now, if on my form I''m just acception name & password, and doing @foo
= Bar.new(params[:foo]) in my controller, someone can just enter
following in form :
<%= text_field ''foo'',
2006 May 23
2
Dynamic database configuration ?
Hi,
I''m trying to run typo in multi user mode outside the box ( without
making too many modifications in core typo code ). I want to determine
database settings dynamically using subdomains. Could someone guide me
to the right direction ?
Thanks,
Pratik
--
http://www.freeonrails.com - Free as in beer !
2006 Jul 15
3
Why app/helpers are not app/view/helpers ?
So that we can write controller code inside helpers ? are we supposed
to do that ?
-Pratik
--
rm -rf / 2>/dev/null - http://null.in
"Things do not happen. Things are made to happen." - JFK
2006 Jun 20
3
Maintaining same session for a user across different PCs
Hi,
I''m trying to make a simple shopping cart, where I want to maintain
state when a use logs in from different location. Consider the
following :
1. ''foo'' logs in from home pc and add ''bar'' item to the cart.
2. ''foo'' goes to office and logs in from office PC.
3. Now I want only one session for ''foo'', so that when
2006 Jun 21
5
Problem with observe_field
Hi folks,
I have following in my view :
===================
<div class="foo">
<%= select ''theme'', "id", Theme.find_all.collect {|t| [ t.name, t.id
] }, { :prompt => ''Select a theme'' } %>
</div>
<%= observe_field(
:theme_id,
:update => :my_style,
:url => { :action => :themelookup, :id => @space,},
2006 Nov 04
6
Javascript form validation for In place editting in scriptaculous ?
Is there a way by which I can do form validation for form generated by In
Place Editting of scritaculous?
The reason is, I want to avoid server roundtrip for checks which I can
perform at browser.
Regards,
Jatinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060828/ca882668/attachment-0001.html
2006 Apr 15
9
Mongrel in Production ?
Hi Everyone,
I was setting up Lighty+Fcgi on our server for last *couple* ( read
zillion ) of hours. I had posted my problems in my previous email. But
all in vain..
So, for time being, I switched to Mongrel. And the performance seemed
quite good. This is the first time ever I''m using mongrel ( Awesome
stuff ZedShaw..Thanks! ). I''m wondering if there are many people
around
2006 Jun 04
11
Hosting images : DB or File System
Hi,
I''m developing an application where I''ll have to store a lot of images
coming from the users. And I''m still not sure if I should store them
in MySQl as blob or just store them on filesystem.
If I store them on filesystem, how to scale when I''ll have to have
multiple servers ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2006 Jul 24
6
error_messages_for not working
I have the following code and I am not able to get it working. The error
message is not coming on the top, it is just getting displayed on a
different page if I dont have the rescue block commented at the bottom.
Model: user.rb
require "digest/sha1"
class User < ActiveRecord::Base
validates_presence_of :eaddress, :fname, :passwd, :pcode, :country,
:day, :year, :month, :gender,
2014 Dec 07
2
[LLVMdev] Interest in LLVM
Hello everyone,
My name is Pratik Bhatu, I am a bachelor student currently studying at IIT Hyderabad, India.
I just finished my Compilers course have been exploring LLVM since the past month (kaleidoscope, writing LLVM passes) and am interested in the llvm-polly project. I am also a potential GSoC applicant and wanted to start working on the project from now. Is there a way I can
2007 Aug 03
6
Problems saving an uploaded image to an app folder
In my app, the user can upload images. Rather than shoving the image
data in the database, i want to put the filename and content type into
the db, then rename the image with its record''s id number, and then save
it into a local folder in my app folder. (hardcoded for now)
All the details are being saved to the db ok, so as far as i know the
"picture_file=" method is fine.
2014 Jun 09
2
[LLVMdev] regarding TargetRegisterInfo.h
Dear Tim,
Thank you for replying back. I could find the file.
But when I try running tblgen on one of the .td's which has such an include
statement I get "file not found error"
eg: llvm-tblgen X86.td gives file not found where X86.td has an include
statement namely "include "llvm\Target\Target.td".
Can you please clear this too?
Regards,
Pratik
On Mon, Jun 9,
2014 Jun 10
2
[LLVMdev] Help required in instruction selection.
Dear,
I have the following problem.
I am given 2 instructions say I1 and I2 whose selection should depend on
the operands.
Say the operands have a boolean attribute 'attr'. I would like to select I1
and I2 by some logic that involves the 'attr' attribute of all the operands
involved.
eg: If all operands have attr set to True, I want I1 to be selected to
operate else I2.
How can I
2014 Jun 20
3
[LLVMdev] Inline Assembly in IR
Dear,
Can anybody comment on inserting inline assembly in LLVM IR?
--
Pratik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140620/03400e95/attachment.html>
2006 Jun 25
3
Dummy field in a model
I want to have a field in model, which I''m not storing in a database.
And I want to do something like the following in the model code :
validates_format_of :field_NOT_in_db, :with => session[:field]
How can I do it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in