similar to: RXML: <ruby:put expr="1+2"/>

Displaying 20 results from an estimated 500 matches similar to: "RXML: <ruby:put expr="1+2"/>"

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/
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 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
2015 Jun 30
3
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
X-Server versions older than 1.16.3 have bugs in their DRI3/Present implementation which impair nouveau, so it is better to stick to good old DRI2 by default on such servers. E.g., page flipping doesn't work at all under DRI3/Present with older servers, and use of extensions like OML_sync_control, SGI_video_sync or INTEL_swap_events also causes failure of Present. nouveau's glamor accel
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
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
2015 Jul 04
2
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
That would be great, as long as it does only that and does not go into the "drivername" territory. As the said driver ;-) "A driver name to use can be provided instead of simple boolean value, which will be passed to the GL implementation for it to load the appropriate backend." -Emil On 4 July 2015 at 18:17, Ilia Mirkin <imirkin at alum.mit.edu> wrote: > IMO
2008 Apr 20
1
Why is respond_to always rending the RXML view?
I''m having a problem in Rails 2 where respond_to is always rendering the RXML view even in the HTML rendering response. Can anyone tell me why this might be happening? Here''s a code snippet: respond_to do |accepts| accepts.html accepts.xml { render :action => ''show.rxml'', :layout => false} end If I change this to the following it works fine:
2007 Jun 26
0
Best way to render KML files using RXML templates
I want to produce google maps KML files which are baiscally XML files with a KML extention. I''m using restful routes and respond_to. The best way I''ve found is to use respond_to do |format| format.kml { render :action => "kml" } will render a kml.rxml template I have but really I want to have action.rxml rendered for kml files. Is there are way to acheive this,
2006 Aug 30
1
Shouldn't rxml files be exempt from layout by default?
RJS templates are the only template type that are exempt from layout by default. Don''t you think it makes sense to add rxml to the list of exempt extensions? I''d assume most people would be surprised to see their XML embedded in the middle of their (most probably) rhtml layout. http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/ action_controller/base.rb:
2018 Feb 10
0
[PATCH] dri3: don't check permissions on render node
The permission check fails if udev sets the render node to 0666 but leaves the card at 0660, as is done in at least udev-236. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- src/nouveau_dri2.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index ac0ca09..a726e86 100644 --- a/src/nouveau_dri2.c +++
2006 Dec 12
2
RXML partial question
All, I have a RXML template which renders partial RXML templates within it. A snippet is below. The "xml" variable is the parent template''s Builder variable. It is passed into the partial under the name "parent_xml". Why can''t I use :locals => {.... :xml => xml ....} in my call to render the partial? It seems like if I do use :xml => xml, it
2005 Nov 03
1
Builder / rxml views: hyphens in XML element names
I''m having a strange problem with an rxml view - it won''t let me put hyphens in the names of XML elements. The original problem line was: xml.VISA-SSL do But in any other place, if I insert a hyphen into the name of any arbitrary element, I get the following kind of error: undefined method `theTextAfterTheHyphen'' for #<#<Class:0xb7617180>:0xb7616f28>
2005 Apr 13
2
render_partial & RXML
Does render_partial work within a RXML file? I am attempting the following: xml.users do for user in @users render_partial ''user'', user end end All that is output is: <user> </user> Without any exception or anything to indicate that I''m doing something wrong. Does anyone have any experiece with this? Josh
2006 Nov 07
0
rxml template accidentally rendered within html layout
Hi, I have the following in my controller: def show @quest = Quest.find(params[:id]) respond_to do |format| format.html format.xml end end And in my routes: map.resources :quests I have two views for this action, quests/show.rhtml and quests/show.rxml. Now what I would expect as a response to ''/quests/1.xml'' is that Rails sends, as XML, the rendered rxml