Displaying 20 results from an estimated 400 matches similar to: "Component or plugin"
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 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
2006 Feb 17
5
getting old values
Hi all,
I''ve add :before_update event to my model
Before updating a record I want to check if new attributes differ to old attr.
My question is how to retrieve old attributes in :before_update event ?
thanks
--
gratis egold 1$ http://shegold.com/
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 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 23
5
Access to session from plugins
Hi!
I am writing an acts_as_ plugin and i need to access session data
from it. But i cant find any information if this is possible? And if
it is, how.
Cheers!
Mathias
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
2008 Jul 13
2
Lotus Organizer 6.1 under Wine
Hello,
I am running Suse 11.0 Linux (actually, within a VMware Workstation 6.0.4) with Wine 0.9.64_aka_1.0.rc3-2.1 (i586) installed.
I would like to run Lotus Organizer 6.1 under Wine. However, after installation I am encountering the following problems:
1. The first thing I noticed was that on invoking org6.exe the program was not able to find certain DLL's. It turned out that the DLL's
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
2007 Aug 29
2
assign local variable instead of instance variable.
Hello,
I have a view that generates a list of adverts with <%=
render :partial => ''advert'', :collection => @adverts %>
I have the render call described with
@controller.template.should_receive(:render).with(:partial =>
''advert'', :collection => @adverts)
Bu when i was about to describe my partial i got stuck.
My partial _advert.rhtml:
2006 Mar 02
17
can''t get rails to connect to mySQL - HELP!!!!!!!!!
Sorry, but this is really NOT as easy as the tutorials/books make out.
I''m really struggling at the first hurdle here. And while I''m not a
programmer by design I do know my way around most stuff. And if I can''t
get this to work I suspect more people will have the same issues. There
seems to be too many variables to address.
I have winXP, I have ruby and rails all
2006 Mar 02
3
Modifying "Find" to always add a condition?
I''d like to always add a condition to any version of "find" (e.g.
Thing.find(), Thing.find_by_name(), Thing.find_by_whatever) so that in
addition to whatever conditions are set, an additional condition is set
:conditions=>"user_id=#{current_user.id}"
I''d like to make sure that a user only sees/edits/creates entries in the
database that have the user_id
2002 Dec 12
1
maclist - thank You
It is working very good :) Thank You. I only need to write Interface etho in
maclist file. My MAC addresses don''t neet the ~ in front of. Thanks !
Maciek
--
----
Oferta jakiej jeszcze nie by³o!
Serwer www 60 MB za 99 z³ rocznie
Szczegó³y: www.oferta.alpha.pl
----
2018 Oct 11
1
Domain Administrator and shares problems
Mandi! L.P.H. van Belle via samba
In chel di` si favelave...
> > What I did, was to implement the smb.conf I got from Rowland. As I do
> > not want *any* Samba users logging on with ssh, the template
> > homedir = /dev/null, and template shell = /bin/nologin.
> The other option is, setup a group in windows give it a GID and put the group in ssh.
I suggest this option,
2013 Feb 26
1
How to avoid overlapping labels
Hi Remko,
thanks for your answer. but i do
not really understand how to use the commands.
if i want to use thigmophobe.labels(x,y,) do i need to identify the xy
coordinates for each point first and then manually move every point? and if
i neet to do so how to use the identify() function?
or is there any possibility to automatically place the labels in the best
position?
>MatArab <-
2010 Mar 28
2
XiphQT
Not sure where to file bugs against XiphQT...
I have noticed that Theora encoded videos played through Quicktime (on
Mac) using XiphQT are incorrectly reproducing the color of the video,
and appear washed out. The same videos can be played via VLC and Firefox
and are true to the original - so I don't believe it's a problem with
the videos themselves or the encoding.
I'm observing
2007 Mar 19
1
Lotus Organizer 97
I've installed 2 apps from Lotus Smartsuite 97 (1-2-3 and Organizer) and
1-2-3 works fine. However, when I run Organizer i get this error:
terry@terry-desktop:~$ wine "c:\lotus\organize\org32.exe"
err:module:import_dll Library LTSCSN10.DLL (which is needed by
L"C:\\lotus\\organize\\TZBACK32.dll") not found
err:module:import_dll Library LTASWN14.DLL (which is needed by
2008 Aug 11
1
High Cpu usage
Hello all.
I have a samba 3.0.31, compiled and running on a freebsd 6.3-p3 and he
work?s fine.
But in some situations ( situations not discovered yet ) the use o cpu is
very high, as you can
see in the top command above.
In my /var/log/messages i see this message, but i dont know what is, and
what i neet to do.
Enable log file on smb.conf i don't see anybody strange, i guess...
So,