Displaying 20 results from an estimated 3000 matches similar to: "STI and ActiveRecord attributes unprotected"
2006 Apr 03
1
debugging RJS output
Hi,
Is there a way to log RJS output in development.log?
Thank you.
--
Posted via http://www.ruby-forum.com/.
2012 Jul 09
10
attr_accessible on some properties + attr_protected on others makes class 'open-by-default'
(I posted this as a bug in GitHub
(https://github.com/rails/rails/issues/7018), but then someone there told
me I should post it here, so here it is.)
If you set attr_accessible on some properties in an ActiveRecord-descended
class, and then attr_protected on others - the class becomes ''default-open''
- if any properties are missed or added later, they will be accessible by
2010 Nov 05
1
Soundpoint IP 430 -- discontinued.
Hey, all. I'm in the middle of a rollout, and just learned that the
SoundPoint IP 430 -- my favorite mid-range phone -- has been discontinued.
The heir apparent is the SoundPoint IP 450 -- for a low, low, low $130
more/handset. AND it doesn't look as nice.
Ouch.
Does anyone have any recommendations -- Polycom or otherwise -- for a
good-quality, mid-range, two-line SIP phone (with good
2011 Mar 13
1
NUT, USB, OpenIndiana
I'm about to deploy en OpenIndiana (the heir of OpenSolaris) box as my
main iSCSI backend. However, all attempts at getting NUT 2.6 to work
with my usbhid-ups cyberpower has resulted in the driver going down with
a segmentation fault.
Is there a known problem with nut+usb+openindiana (opensolaris), or am I
just doing something wrong?
//Svein
--
2006 Jun 15
10
Finding out all terms from search results. How?
Hi everybody,
I need to find out all terms (field values) from one of the fields from
a set of documents returned by search.
In other words, I have indexed documents with two fields. I do search on
one field and then want to know all other field''s values from fount
documents.
How?
--
Sergei Serdyuk
Red Leaf Software LLC
web: http://redleafsoft.com
--
Posted via
1999 Dec 10
3
scp with openssh on the server side and $PATH.
Hi!
When I try to use scp from or to a machine that runs openssh-1.2pre16
on Debian Linux, I keep getting the error message "scp: command not
found". Executing "ssh this-host echo \$PATH" yields
"/usr/bin:/bin:/usr/sbin:/sbin:" which might be set in config.h.
sshd is installed to /usr/local/stow/openssh-1.2pre16/sbin, scp to
/usr/local/stow/openssh-1.2pre16/bin;
2020 Aug 15
5
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
On Sat, Aug 15, 2020 at 8:39 PM Martin Storsjö <martin at martin.st> wrote:
> Hi,
>
>
> On Sat, 15 Aug 2020, Ivan Serdyuk wrote:
>
> > Just as Shoaib said, libunwind only is useful in environments
> > that use
> > the Itanium C++ ABI - there's really no use for it in an MSVC
> > context
> > (either using MSVC or
2004 Jun 16
2
smbspool to Windows 2000 Server: "ERRgeneral opening remote file"
Hi,
I am trying to print from my Debian unstable Notebook to a printer
that is connected to a Windows 2000 Server. Target environment is CUPS
which uses smbspool as a front-end, and smbspool gives a strange error
message.
| export DEVICE_URI="smb://account:password@domain/server/printer"
| smbspool foo bar Title 1 ignore Makefile
gives the error message
| ERROR: ERRHRD - ERRgeneral
2006 Jun 07
4
Question: coding protected methods
Apologies first, because I need to ramp up on Ruby and coding Ruby in Rails,
however it''s my 3rd day with this beast :) so I''m asking :
When I added protected methods to the model before it was like:
protected
method....................
end
Would this be a valid way to write a protected method as well ?:
attr_protected :column1, :column2
Perhaps this particular call
2006 Jun 20
7
Any fast way to update non-indexed fields?
Hi,
>From looking at Ruby sources it seems that every update method deletes
and reinserts documents. It makes sense if indexed fields are changed
but what if it is not the case? It would speed up update a lot indexes
did not have to be updated twice for nothing. Any quick way to do it?
--
Sergei Serdyuk
Red Leaf Software LLC
web: http://redleafsoft.com
--
Posted via
2020 Aug 16
3
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
Martin,
good to hear from you.
Thanks for the effort - I will test on 32bit and 64bit Windows 10.
I will report ASAP.
Ivan
On Sun, Aug 16, 2020 at 8:42 PM Martin Storsjö <martin at martin.st> wrote:
> On Sat, 15 Aug 2020, Ivan Serdyuk wrote:
>
> >
> >
> > On Sat, Aug 15, 2020 at 8:39 PM Martin Storsjö <martin at martin.st> wrote:
> > Hi,
> >
2006 Apr 06
3
Formating Float ActiveRecord attributes in text inputs
I have AMOUNT field that ActiveRecord maps to Float.
Then I use text_field helper to generate text inputs on forms.
Helper takes model object and attribute name and does not provide any
formatting abilities, thus 2.40 is shown as 2.4 which is fine with
floats but does not look good with currency.
I have worked around this issue by adding amount_f attribute to the
model that returns formatted
2007 Jan 26
7
How to protect attributes from being updated?
Hi!
I''m new to Rails!
Rails rox!
1 quesion so far:
I have :email attribute in User model.
I dont'' want :email to allow to be updated.
How do i do this with Rails?
Do I have to implement required validation manually?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 May 26
1
[Bug 1909] New: "WARNING: UNPROTECTED PRIVATE KEY FILE!" warning needs an actionable step
https://bugzilla.mindrot.org/show_bug.cgi?id=1909
Summary: "WARNING: UNPROTECTED PRIVATE KEY FILE!" warning needs
an actionable step
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: trivial
Priority: P2
Component: ssh
2015 Apr 17
0
[Bug 1909] "WARNING: UNPROTECTED PRIVATE KEY FILE!" warning needs an actionable step
https://bugzilla.mindrot.org/show_bug.cgi?id=1909
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |djm at mindrot.org
Resolution|---
2015 Aug 11
0
[Bug 1909] "WARNING: UNPROTECTED PRIVATE KEY FILE!" warning needs an actionable step
https://bugzilla.mindrot.org/show_bug.cgi?id=1909
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
Set all RESOLVED bugs to CLOSED with release
2006 Apr 25
6
[Bug 1186] unprotected keys are not properly ignored
http://bugzilla.mindrot.org/show_bug.cgi?id=1186
Summary: unprotected keys are not properly ignored
Product: Portable OpenSSH
Version: 3.8.1p1
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: ssh
AssignedTo: bitbucket at mindrot.org
ReportedBy: pepper at
2007 Jul 25
5
set_default_values rocket science - continuing after_initialize/after_find misfeature
Just starting a new thread so that it''s easy to follow.
I just submitted a patch at trac to add a new class method called
"set_default_values" ( not a great name I think ), which lets you do
all kinds of crazy stuff with setting default values.
This ticket is at http://dev.rubyonrails.org/ticket/9093 and example
pastie is at http://pastie.caboo.se/81925
It also lets you make
2005 Mar 07
3
exclude an attribute from save
Hi,
I''ve used .save to save the attributes, but on my table there is an
autoincrementing id (not the primary key) that doesn''t need to be
inserted... but save try to INSERT it anyway... is there a way to
avoid save from acting this way or to whisper him to be more polite
this time? ;)
Thanks,
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do
2007 May 30
9
Specify attr_protected
This is kind of a two part question.
Question One: I want to be sure that an Order model is protecting
sensitive attributes from mass assignment.
The example looks like this:
describe Order do
it "should protect total attribute from mass assignment" do
@order = Order.new(:total => 0.05)
@order.total.should_not == 0.05
end
end
And the code to implement it:
class Order