similar to: About before_* callbacks

Displaying 20 results from an estimated 600 matches similar to: "About before_* callbacks"

2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem
2008 Dec 31
2
How to set homepage in Rails
Hi : If I want http://localhost:3000/share to be homepage http://localhost:3000/, How can I do setting from rails ,please? Thanks. Cruise -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2009 Jan 18
2
after_save -- stack level too deep
Hi all, I''m running into a brick wall trying to figure out my problem here. I have a model that has a boolean property called "paid". I''d like to add the following to my model: def after_save self.amount == self.splits.sum(:amount) ? self.update_attribute (:paid, true) : self.update_attribute(:paid, false) end The problem is, when I do this I get an error that
2006 Feb 21
2
ActiveRecord before_ callbacks question
Hi! I need to set the primary key in a model and postgres table to something different than id. View Edit and such works in the scaffolded controller. However if I click in the controller below the list of data onto New then I get an error message like this: Showing app/views/admin/_form.rhtml where line #5 raised: undefined method `nr_before_type_cast'' for
2010 Mar 08
2
ActiveRecord::ReadOnlyRecord on attributes_update
Hi, I have a ActiveRecord::ReadOnlyRecord error when i update child attributes whereas when i create a new one it works fine. Someone had this error? Best, greg -- Posted via http://www.ruby-forum.com/. -- 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
2003 Jul 26
5
suid bit files + securing FreeBSD
Hello everybody, I'm a newbie in this list, so I don't know if it's the appropriate place for my question. Anyway, I'd be happy to find out the solution. Please, has anyone simple answer for: I'm looking for an exact list of files, which: 1. MUST have... 2. HAVE FROM BSD INSTALLATION... 3. DO NOT NEED... 4. NEVER MAY... ...the suid-bit set. Of course, it's no problem to
2006 Apr 03
3
Read Only Error Since 1.1?
Since I upgraded to 1.1, I am getting ''ActiveRecord::ReadOnlyRecord'' exceptions when trying to save a specific record. I read up on ActiveRecord::Base.readonly? but I don''t think the condition there (objects pulled in from a certain JOIN type) applies. Here''s my code that is throwing the exception: @company = session[:company] @company.bytes_used =
2015 Jun 19
2
Calling multiple phones at once
Hello All! I asked week a so ago about how to call multiple phones alltogether (home, office, cell) Dial app looks simple, this is kind of what I have now: --------------------- [globals] IVAN_HOME_OFFICE=SIP/BF8 IVAN_OFFICE=SIP/CFC IVAN_CELL=SIP/83 at callcentric [internal] exten => 101,1,Dial(${IVAN_HOME_OFFICE}&${IVAN_OFFICE}&${IVAN_CELL},60) same => n,VoiceMail(101 at
2007 Jun 30
1
HABTM ReadOnlyRecord
Hi. I get this error: ** ActiveRecord::ReadOnlyRecord ** When i try to update a table called characters_learning_abls that is a habtm relation between characters and learning_abls. The characters_learning_abls table looks like this: ** character_id int(11) unsigned learning_abls_id int(11) unsigned amount double ** Why cant i update this table though the **
2010 Apr 27
2
how to start an edge rails app
I want to check out an issue in edge rails. I''ve never used edge before and am having a lot of trouble getting it up and running. Following modified instructions from http://ariejan.net/2009/01/04/how-to-start-a-rails-edge-app-the-easy-way/ $ mkdir -p app/vendor $ cd app $ git clone git://github.com/rails/rails.git vendor/rails $ ruby vendor/rails/railties/lib/rails/cli.rb .
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
2017 Feb 01
2
CentOS 7.3.1611 scap-security-guide issue
Hello, I have noticed that pci-dss profile, ssg-centos7-xccdf.xml will always fail on test and remediation for disable_prelink rule. That seem to be caused by insufficient CentOS RPM customization of upstream code. Specifically this: https://github.com/OpenSCAP/scap-security-guide/blob/master/shared/oval/disable_prelink.xml#L24-L35
2008 Apr 10
8
[PATCH][RFC]Move PCI Configuration Spaces from Dom0 to Xen
Hi, Keir, This patch will move reading and writing of PCI configuration spaces from dom0 to Xen. It also changes VTD code, so that they can touch the PCI configuration spaces with proper lock. This will also benefit MSI support in Xen. Can you give some comments? Thanks! <<pci_conf_xen.patch>> Best Regards Haitao Shan _______________________________________________ Xen-devel
2009 Apr 24
1
the puzzle of eigenvector and eigenvalue
Dear all I am so glad the R can provide the efficient calculate about eigenvector and eigenvalue. However, i have some puzzle about the procedure of eigen. Fristly, what kind of procedue does the R utilize such that the eigen are obtained? For example, A=matrix(c(1,2,4,3),2,2) we can define the eigenvalue lamda, such as det | 1-lamda 4 | =0 | 2 3-lamda | then
2006 Jun 16
1
diff (to html) for Rails?
Hi, I am looking for a way to compare to pieces of text, and mark up the differences with html. Basically the way Basecamp Writeboards do it. I was wondering whether this is available as a plugin (my initial search didn''t turn up anything). Ingo Weiss -- Posted via http://www.ruby-forum.com/.
2006 May 19
2
Doing and storing a Writeboard like diff in RoR
Hello all, Anyone have any suggestions on how I could do and display a diffed piece of text in a style similar to Writeboard (strikeouts etc.) Q1) Are there any ruby gems for diff? Q2) How would I represent the diffed text in styled HTML? If there are existing tools, any ideas on how I could write this? Thanks, Vaishal -------------- next part -------------- An HTML attachment was scrubbed...
2009 May 05
2
Apache and CF
Hi All, I have a CentoS 5.3 Xen Instance at Mosso. I need to run ColdFusion and I have in the past successfully made everything work, but not on Linux rather Windows. I just cannot get Apache and CF talking. I added mod_jrun22, When I try to serve a CF file, I am asked to download binary data. I added .cfm and .cfml to Directory Index for /var/www/html in httpd.conf and nothing still.
2005 Mar 18
4
wine-20050211 on SuSE 9.2
I am trying to install wine-20050211 on my second system, which runs SuSE 9.2. After much faffing around I finally managed to download and install bison, which allowed ./config to complete. A warning at the end advised me to install xlib-devel or xfree86-devel. Googling around I found the RPM for XFree86-devel for SuSE 9.1 so I downloaded it and started to install it. Unfortunately, a
2006 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things that is incredibly difficult to search for. How can I disable an ''Ajax.Autocompleter'' element from working ''on the fly''? I have a page where I''m using two (I know it''s crazy) Ajax.Autocompleter elements and once one of them has got a result I want the other field
2000 Dec 26
2
openssh 2.2, fbsd 4.2: incoming data hangs sshd on tty
This message is reporting 2 possible bugs: a possible problem with sshd from OpenSSH 2.2 on FreeBSD 4.2, and a possible security hole in FreeBSD's boot process (??) I am not an expert on these kinds of issues and therefore do not have the knowledge necessary to trace the origins of the problem to the extent that would probably be helpful. Nevertheless, here goes: Here is the physical