similar to: getting old values

Displaying 20 results from an estimated 300 matches similar to: "getting old values"

2006 Feb 15
3
RailsTidy: validates your HTML
Hello everybody, I needed something to validates my HTML templates so I wrote a plugin and here is its first version: RailsTidy is a plugin for Ruby On Rails. It allows you to * validate your rhtml templates, * validate the html output of your functional tests, * clean the html generated by rails. For doing all this, it uses * Tidy[1], the popular HTML validator and
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g. like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither seems to work. right now I always close the %> and open a <%= which is tedious. -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
5
History plugin
Hello, I felt annoyed enough when having to redirect user back to their previous location in a hackish way that I wrote this plugin. It avoids storing POST and Ajax request. It also has a facility to specify actions not to store in the history. If you are interested, it''s there: http://blog.cosinux.org/pages/rails-history See you all, Damien -- Damien MERENNE
2006 Feb 13
2
Do I need separate file for each model
Hi, I have some models in a file named genel. When I try to use one of the classes in my controller rails raises an error telling classname.rb is not forund even the file is required already. require "genel" require "hesaplar" class HesaplarController < ApplicationController def yeni_firma @emlak_firmasi = EmlakFirmasi.new @sehirler = Sehir.find_all end
2007 Jul 31
1
RXML: <ruby:put expr="1+2"/>
Hello railers, I''ve always been annoyed by the fact that ERB doesn''t respect XML specs. As I mostly write XHTML, I''m trying to write a renderer using only valid XML files. Here is an example of a file so you get the feeling of what it''s going to do: <?xml version="1.0" encoding="utf-8"? > <html
2006 Feb 13
1
master and slave issue.
hi all. i have a model called "Comment": #--------------------------------------------------------- class Comment < ActiveRecord::Base def read ... end def write ... end end #--------------------------------------------------------- i want "read" connect to slave server and "write" connect to master server any ideas? all regards. -- Posted via
2006 Feb 13
1
Component or plugin
Hi! I have been learning rails for a couple of week now. Mostly i''ve worked on a authorize/roles system and now i go to the point that i want to separate it from en rest of my application to share it with others and to use it in other projects. It is a quite simple system that i implement using before_filter. My vision is to separate the authorize methods and even some basic
2006 May 22
4
naming convention for bridge tables.
I read somewhere that the correct naming of bridge tables is in alpha order. For example. I have two tables: houses, and colors. If I want to create a bridge table to associate colors with houses, I would name the table: colors_houses The associations work fine. But, if I have a table named: track_houses. Building a bridge table called: colors_track_houses, gives me model associaton errors.
2006 Feb 06
2
how do i reload a module in the vendor directory?
This seems like a fairly straight forward question. I have code in the vendor directory. Any modifications that I make to the code are not respected. My rails app is in development mode so I would expect any require ''code'' to be re-parsed. But this is not occuring... How so? I have a test to post if I need to, but I get the feeling that I am just missing something simple. I
2006 Feb 14
8
Best Practices For back/cancel/return button
Are there any best practices for implementing a back/cancel/return button... even when the page you want to return people too is 2 pages back (when people submit form and then want to return)? Thanks :-) Your Friend, John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering
2006 Jan 13
4
How to add virtual fields in model
I want to add virtual fields in a model. table: field1 field2 I want to add field3 which is field1*2 + field2 I know tihs can be achieved in View, but I want it in model. Then I will pass this model to PagerRenderer to paginate. How to achieve this? thanks -- Posted via http://www.ruby-forum.com/.
2011 May 20
2
Problems with group assignments
Dear All, We are trying to transfer a SaMBa installation from an old server to a newer more up-to-date one. The original server was sharing files to Windows XP systems in Active Directory (Windows Server 2003 R2 version), but as we move to Windows 7 and Active Directory (Windows Server 2008 R2 version) we need to upgrade the service. The old server was part of a NIS domain, with the
2004 Sep 21
1
Fw: failed tcon_X with NT_STATUS_ACCESS_DENIED
I don't know if this got posted. Sorry for the double. Basically I have 4 Win AD servers I'm trying to use for password servers. I can net join others but not this one. All AD servers are identical and I have a computer account on all 4. What does this error mean? Thank u ! I'm also getting intermittent “password server not available” and users can't connect at random. I've
2006 Feb 10
5
Re: Manually running dispatch.fcgi fails (Please help!!)
I''m really lost on this issue. Do I need to reinstall rails / gems? The rest of my rails setup seems to be working. I just can''t run dispatch.fcgi. (Details in original message below). I have no idea how to troubleshoot this. I''m not even positive it is supposed to be runnable from the command line. I found a troubleshooting guide that implied it was supposed to
2006 Mar 04
3
Gzip compression
How to enable automatic gzip compression for all .js .html ? Thanks -- Posted via http://www.ruby-forum.com/.
2004 Aug 23
1
UID and GID mapping.
Hello I'm running solaris 8, samba 3 with winbind. I am using winbind to get samba passwords from windows active directory. I have a local /etc/passwd and shadow files for a few users, but when those users map a drive they get a UID from active directory which is different then their UID in etc/passwd. What are some ways to map their AD/winbind UIDs to their unix UIDs? Example: User joe
2006 Dec 02
0
has_and_belongs_to_many and finder_sql options
Hello everybody, I''ve been hit by the bug described at http://dev.rubyonrails.org/ticket/1732 Is there any reason why the patch is still not included in trunk ? The patch seem simple enough. Regards, -- Damien Merenne http://blog.cosinux.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Feb 19
2
SwitchTower 1.0.0
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles. Manual: http://manuals.rubyonrails.org/read/book/17 Project:
2006 Feb 14
3
Ruby equivalent to PHP Beautify?
Hi all, I am working on a project in Rails for my senior seminar class. I am fairly new to Rails but I have done a major project, so I know a little. The one thing I cannot find however is a way to make the html code that is output look any cleaner. So, I was wondering if there was a function/library/extension that worked like PHP beautify. Thanks for your input in this matter. I am sure I will
2004 Sep 14
1
intermittent NT_STATUS_ACCESS_DENIED
Im having an intermittent problem with samba. Im running samba 3.0.2a on solaris 8 that i downloaded from sunfreeware.com I have my smb.conf setup to get passwords from my active directory server and it usually works fine. I ran a net join command like so to originally join the domain: root# net join -S WIN2KSERVER -w MYDOMAIN.com -U Administrator Password: Joined domain MYDOMAIN. It will run