similar to: need to add XTHML class attribute, link_to's html options?

Displaying 20 results from an estimated 1100 matches similar to: "need to add XTHML class attribute, link_to's html options?"

2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or
2007 Jul 21
3
manging rescues
What''s the recommended way to catch errors like this: NoMethodError in Register#confirm Showing app/views/register/confirm.rhtml where line #4 raised: undefined method `namen'' for nil:NilClass I get this error when someone does somethinh like: http://.........../register/confirm?email=jkdsfadslkjflksd If I make: remail = params[:email] @user = Request.find(:first,
2007 Jun 27
5
Regexp not matched
Sorry, meant to post this in the rails forum. Anyways, how would I write a rescue method to recover from a failed regexp parsing with error "regexp not matched" -Thanks -- 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
2007 Jul 07
6
Help in upgrading from 1.1.6 to 1.2.3
Hi, I was developing a rails app with version 1.1.6 that just worked fine. I decided to upgrade to 1.2.3 and then, I keep getting that horrible message: "Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html" Now, before starting script/server I modiffied config/environment.rb and
2007 Jul 23
1
readline (LoadError)
hi, i''m a noob in ror, today i bought a book to learn ror. i do everthing that stand''s in this book, and the shit does''t work! i use Aptana IDE with RadRails the problem is: Loading development environment. /usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from
2007 Jun 13
2
Delete the fixtures on a functionnal test
Hi, Since couple a day, I block with the delete of my fixtures in my functionnals test. In my controller, I need test a redirect if there are no value. But i load my fixtures in start of my test and in a specific test I want delete all. Only in this method, not in other method. In API, I discover the method delete_existing_fixtures, who seem the good practice, but I can''t find how use
2007 Nov 01
1
newbie: need to delete object in loop
Hi, sorry for this rather simplistic question, but I can''t think of a good way of googling the answer (just been trying for 20 mins). Anyway... so I have this rather simplistic piece of code: <% for artwork in @artworks %> <% if artwork.medium_id %> <% medium = Medium.find(artwork.medium_id) %> <% end %> <% if medium %> <p><%=
2007 Jul 06
3
assert_equal - problems returning value from controller
Hi, I have the following assert_equal that is returning false. @q seems to be returning niil, but is set in the controller, how can I get hold of this value in my tests? assert_equal ''derby'', @q Thanks Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails. acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered lists through a join-table. It is providing almost the same Api as acts_as_list. The position column has to be defined in the join table. You can find additional information at: http://www.inlet-media.de/acts_as_habtm_list/ Install it executing this command
2007 Jul 14
3
observe_field, does this generate HTML?
I don''t have Rails installed at the moment, I''d like to check myself, but it''s just a simple curiosity. observe_field fits into replacement tags <%= %>, which caught my attention because as far as I know it''s just javascript observing a field and should not stick anything into HTML. Is <%= merely used as an enabling method, or will there actually be
2006 Jan 22
2
suggest for "ambiguous column" when JOIN associated tables
Today I face with incorrect behavior in ActiveRecord. It take place when I try to use :include parameter for .find method. Where are two typical cases: 1. You have record with self-referential joins CREATE TABLE keywords (id, group_id); class Keyword < ActiveRecord::Base belongs_to :group, :class_name => "Keyword", :foreign_key =>
2007 Jul 19
8
Where do I put code for my own types?
Sorry for all the questions today... Beyond the obvious things--models, controllers, helpers, and other framework-related types--where should I put the code for my own types? For example, I was thinking of writing my own AJAX-friendly paginator, but I don''t know where to put the code for that sort of thing. I would prefer to keep things object-oriented, so I would rather do a lot of
2006 Jul 17
1
sortable_element - Altering defaults set by rails
Hi there, I''ve got the following code to generate two sortable elements but whenever someone drags and drops an item, i only want it to return a serialised list of the items in categoryartworks, the unlinkedartworks can be in any order and I don''t care. I can then delete those artworks that were in category artworks but aren''t in the serialised list, plus reorder
2006 Jul 11
1
Dragging and Dropping between lists
Hi there, I''m creating a back end system where the user is able to click on a category and then see two lists. One list is the list of artworks assigned to that category. The other list is a complete list of all the artworks that this user owns (minus those already in the category). I''m looking for some online help that shows you how to allow those list items to be dragged
2007 Jul 25
3
Using system() to execute a script outside of Rails but in a directory in the Rails app...
I''m trying to hack around a previously mentioned RMagick problem, confirmed to exist inside of Rails but not outside. Thus, I''d like to call a Ruby script from with in a Rails controller. Like so: system("#{RAILS_ROOT}/public/images/thumb_and_comp.rb", "#{@asset.file_name}") But it never seems to get executed. Permissions are set to 755 on the script. Any
2012 Sep 10
1
following the artwork thread, there appears to be an error at step 4.2 of the wiki article
at: wiki.centos.org/ArtWork I set up a machine to test at step: 4.2, it states: 4.2. Configure Your Workstation ... To download your working copy execute the following command: svn co https://projects.centos.org/svn/artwork ~/ This command will create your working copy inside your home directory, specifically in a directory named artwork. -------------------- quote ends This appears to
2008 Dec 03
2
Rails functional test how to assert json result?
As title, I want to have my functional test check results from a json render result, how can I achieve this? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2019 May 23
3
Artwork localization
Hello everyone, What do you think about having localized the following CentOS components: - Rolling notes in CentOS installer. These images are shown during the installation process, once the configuration is done and you are waiting for packages to be installed. Rolling notes are a great place to promote CentOS. If they are not localized, they are shown in English language by default.
2019 May 25
2
Artwork localization
Hi Timothy, On Thu, 2019-05-23 at 14:03 +1000, Timothy Lee wrote: > I can provide zh-CN, zh-HK and zh-TW translations of the content. Your changes were pushed. See: https://git.centos.org/centos/Artwork/c/9efa093b155293bf171d6b7f9ceeb73b41170cf9?branch=c8 To render Chinese rolling notes images I had to change the final images' typography from "Overpass" to "Google
2019 Mar 07
2
CentOS 8 Artwork needed
To all the artists and designers here, we need your help. With RHEL 8 beta released, we need to start producing artwork for CentOS 8. It's time for the CentOS Artwork SIG, and anyone else that's interested in contributing to this effort, to start working on everything that will be needed for the new release. What we know we need is anaconda artwork, and new desktop backgrounds to replace