similar to: keeping error messages out of the model

Displaying 20 results from an estimated 70000 matches similar to: "keeping error messages out of the model"

2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and their hashed password in the cookie after a successful authentication. can any see an obvious security issue with this? I know the method is vulnerable to cookie theft but am i missing anything? thanks alan
2006 Jun 24
2
gettext and maintenance
hi all my app has two languages, I''m using gettext to manage them and so far so good. My question is about maintenance. If I fix a typo in a _() enclosed string, for example in an rhtml file, then the translated version of that string will no longer be valid will it? even if the translation itself had no errors. Is that the case and if so will i be forced to have the _() string
2006 Jul 13
4
why I don''t like to use some 3rd party plugins
I''m not a professional developer in the sense that I''ve had any formal training or experience. I taught myself programming two years ago and have since moved to ruby and shortly after to rails - even now, i only develop as a hobby. This means that a lot of developer best practises are foreign or unknown to me, that''s why I love rails so much. You learn so much just
2006 Jul 13
1
fixtures getting a little hard to manage
I have lots of tests which rely on fixtures being a particular state in order to pass. For example, one test checks that a User object can have no more than 3 associated ''Page'' objects at a time. That''s a simple example but I have more complicated tests too. The problem is I sometimes add a fixture without realising it''ll affect the tests and everything
2006 Jul 13
3
Validation question
If I am validating an object before it is saved and do a find(:all) of that object class, will the object which is being validated be returned by the find method? something like: class Resource < ActiveRecord::Base def validate resources = Resource.find(:all) ..do stuff end Will the object I am validating be in the ''resources'' array? Thanks in advance, Don Mc --
2006 Jun 24
2
contents of /lib automatically loaded?
I''ve written a simple replacement (not extension) of Ruby''s array class with some added functionality. I defined it in array.rb and put the file in rails_root/lib but when i fire up the console the class isn''t being loaded. How can I have my class automatically loaded and used instead of the built in Ruby class?
2006 Jun 27
1
Build on Linux / Messages nasm error: short jump is out of range
Hi, trying to build syslinux on Linux. Please help. bash-2.05b$ uname -a Linux bongo 2.4.32-ARXc3 COHERENT #4-ARX (Build 2660) Sun May 21 15:35:22 CEST 2006 i686 i686 i386 GNU/Linux bash-2.05b$ BUILD/syslinux-3.11/opt/nasm-0.98.38-2/bin/nasm -version NASM version 0.98.38 compiled on Jun 26 2006 But failed with: + make NASM=/home/axel/p/rpm/BUILD/syslinux-3.11/opt/nasm/bin /nasm
2006 Aug 16
15
OT: finding a designer (bit of a rant)
I''ve written my app already. It outputs valid xhtml and I need a stylesheet to drop over the top. How hard is it for people to understand that? It''s a small project, they''d have to do the main design/layout, and then a little custom styling for some specific elements which don''t appear on every page. That''s the point of CSS right? write once, use
2005 Apr 28
5
fcgi woes
Hi all I''m running rails on apache with fcgi under windows I have a module which I''ve included in one of my models, but if I change any code in the module, i have to restart apache in order for the changes to take effect. i tried some suggestions from folks in the IRc channel, namely to put RAILS_ENV = ''development'' in environment.rb but that doesn''t
2006 May 29
1
need help with gettext
I''m following the wiki instructions for using gettext: http://manuals.rubyonrails.com/read/chapter/105 I run ''rake updatepo'' and it creates a myapp.pot file in rails_root/po. I then create a sub-directory (rails_root/po/en_GB) and copy a translated myapp.pot into it. When I run ''rake makemo'' it doesn''t create a ''locale''
2006 May 08
1
Acrobat Reader version for CentOS 3?
Having had a working version of Acrobat Reader, I upgraded to 7.0.5 a couple of days ago (without backing up the previous install, of course). Unfortunately, the acroread command fails with: GTK+ UI Toolkit libraries, ver. 2.4 or greater were not found. The (CentOS 3) standard libraries for gtk+ etc. are installed. Anyone know what is the most recent compatible version of Acrobat Reader for
2020 Apr 21
0
Status of Windows Search Protocol support in Samba?
On 21/04/2020 12:38, Noel Power via samba wrote: > (resending, apologies if you got it already but I got a rejection message) This one got through on the Samba list. Thank you for your helpful reply. > yep, WSP server that translates protocol to tracker sparql queries is > working (with caveats [1]) > > The code would need some effort to get it in shape, as you might imagine >
2006 Mar 17
2
British Pound character in error messages
some of my validation error messages contain a pound sign (the British currency, not #) however, this get''s shown as a question mark in the view. i can get round it by using the html reference (&pound;) instead of the literal character, but it seems a little counter-intuitive to handle this in the model... isn''t it view related? any suggestions? I''m developing
2006 Apr 25
5
to ajax or not to ajax
before I started building my latest rails app, I made the decision to make good use of ajax. My reasonsing was that users would benefit from the quicker page updates - the application provides various different types of insurance quotes, and has several multi-page forms and reports that can be drilled down 5 or 6 levels deep in some cases - so it seemed like a good candidate for ajax Now
2006 Apr 02
3
FeedTools syntax question
http://www.mozdex.com/open.jsp?query=webhosting&start=10 in the above feed, can anyone tell me how to access the openSearch:totalResults element using feed tools? I can access the other elements, but I''m unsure what special meaning the colon carries or how to work with such items in feedtools thanks in advance al
2015 Sep 24
1
Chaining to pxelinux.0 6.0.3 from iPXE - ldlinux.c32
On 9/24/2015 4:33 AM, Gene Cumm wrote: > On Wed, Sep 23, 2015 at 5:43 PM, Alan Sparks via Syslinux > <syslinux at zytor.com> wrote: > Although it means another round of testing, you could also consider > lpxelinux.0 which can support HTTP URLs on its own and probably > interacts differently with iPXE. I am curious about a quantifiable > description of "an odd
2019 Oct 07
0
Changing HTML Error code message
Hello, I'm relatively new to using R and shiny. Currently, I'm getting the Error: Conflict (HTTP 409) when trying to access an html file from dropbox and this is fine, I know the reason. What I do have a problem with is trying to find a way to change Error code message. Instead of simply "Error: Conflict (HTTP 409)", I would a message a client might be able to understand.
2006 Jul 22
2
fetching records from tables
Dear all, I have a doubt, How to fetch records from tables, which are not having ID field as its primary key. If possible, please tell me to way to extract data from those tables. -- with regds, Nahalingam N. Kanakavel. (http://www.nahalingam.bravehost.com/PlanetN/) -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Apr 21
2
Status of Windows Search Protocol support in Samba?
(resending, apologies if you got it already but I got a rejection message) Hi All On 21/04/2020 01:48, Jeremy Allison via samba wrote: > On Sun, Apr 19, 2020 at 10:49:55AM +0100, Mark Rousell via samba wrote: >> On 19/04/2020 10:25, Ralph Boehme via samba wrote: >>> Am 4/17/20 um 5:55 PM schrieb Mark Rousell via samba: >>>> I've been trying to Google this but
2020 Apr 21
2
Status of Windows Search Protocol support in Samba?
On 21/04/2020 13:14, Mark Rousell via samba wrote: > On 21/04/2020 12:38, Noel Power via samba wrote: >> (resending, apologies if you got it already but I got a rejection message) > This one got through on the Samba list. > > Thank you for your helpful reply. > >> yep, WSP server that translates protocol to tracker sparql queries is >> working (with caveats [1])