search for: tonypm

Displaying 19 results from an estimated 19 matches for "tonypm".

Did you mean: tonym
2007 Jul 02
3
stupid Rails rendering
I dont'' understand why it''s not possible to have a conditional redirection in rendering respond_to do |format| format.js { render :update do |page| page.redirect_to posts_url if @located page.replace_html ''error_message'', "Error..." page << "$(''popup_error'').popup.show();"
2008 Apr 09
3
help with model relationship for Product/Bill of Materials
...which worked really well from console tests, but messed up my Product views because although @product=Product.find id, the url for product_path(@product) becomes packet path if it has type=''Packet'' and of course there is no such route. That did my head in so I dropped the idea. Tonypm --~--~---------~--~----~------------~-------~--~----~ 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 group, send e...
2008 Jan 19
5
Open a (redbox) modal popup from inside a controller?
Hi, I''m trying to open a modal popup window using redbox to display a styled notification/alert to the user. The helpers in the redbox documentation only describe how to open a redbox when the user clicks on a link, e.g., link_to_redbox() or link_to_remote_redbox(). Is there any way to open a redbox, or a different type rails- compatible modal popup, from inside a controller action?
2009 Apr 07
3
assert_valid in unit tests after upgrade to rails 2.3 doesn't work
def test_valid assert_valid State.first end Error: test_valid(StateTest): NoMethodError: undefined method `assert_valid'' for #<StateTest: 0x7f0d60750318> I see that test_valid is now in ActionController::Assertions::ModelAssertions. Does this mean that test_valid is designed to be used i ActionController tests only? I can change my assert_valid(State.first) into assert
2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating raw_post_data. My situation is this: I''m the developer for RubyAMF (wiki.rubyamf.org). Which is a flash remoting application server. With the rails plugin, it allows flash to talk to a controller and return AMF data.. So long story short, the flash player makes a request to a rails controller sending AMF binary format in the
2008 Jul 08
6
Show SQL request without issuing it
Hi all, I saw that some object.save is causing the SQL request to crash, but I don''t see the SQL request in the logs (only ruby code that''s showing an error during the .save method). Is there any way to show the SQL request before it''s issued to the database ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2007 Apr 29
1
acts_as_list with :scope - how do I move items to a different list?
Hi, I have in my simplistic app: class Album has_many :pics, :order => :position end class Pic belongs_to :album acts_as_list :scope => ::album end It all works fine when creating a new pic from the forms. But, when trying to move a pic between albums, the album changes Ok, but no matter what I do the position attribute stays the same and the list navigation is broken. So far,
2007 Sep 14
0
Help wrtiting test for models that use CSV data
...tion is where do I put this data and how do I store it. I could build some test strings, or I could use test files, but it would be nice to make them accessible to different model tests. I am still green at writing tests and cant get my head around how best to go about this. Any ideas?? Thanks Tonypm --~--~---------~--~----~------------~-------~--~----~ 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 group, send...
2007 Oct 08
1
onblur to work with select
I need a method to be called upon an ''onblur'' event when a select list is no longer the focus - ideally, I would like it to work when the ''Enter'' key is hit. But, I am just trying to get the onblur to work, here is what I got: <%= select( "airlinemembership", "membership", Airline.find( :all, :order =>
2008 Feb 15
1
Rad Rails/Aptana plugin for haml - site down anyone know if it hosted elsewhere
I have been using the Haml plugin for RadRails, it works well, but after rebuilding my laptop from windows to fedora, I re-installed Aptana (after some sweat and toil) but the site http://blog.lucky-dip.net seems to have vanished. Wonder if anyone knows of an alternative? Thanks tonypm --~--~---------~--~----~------------~-------~--~----~ 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 group, send e...
2008 Jun 04
2
How to change ActiveRecord date format conversion
I am using custom control for entering a date on the form. My date format is dd.mm.yyyy and this is also what the control returns to program. But ActiveRecord expects date to be formated as mm.dd.yyyy and thus saves wrong value to database. I have implemented method which corrects date fields prior to save to database, but it is clumsy. There must be a solution to configure ActiveRecord so it
2008 Mar 03
4
To use JS in RedBox Plugin
Hi All, I''m using redbox plugin in my app. Redbox plugin is working properly.But when i try to change text box values using js its not working. The Code is <input type="text" name="playlist" id="playlist_name"> <input type="radio" name="playlist"
2007 May 22
4
Rails API is not well defined
Although somewhat new, I continue to struggle with passing the right parameters to the Rails methods despite making direct reference to the documentation. For example, I want to create a form: form_tag :action => ''deliver'', :id => @event.id, :class => ''entry'' The class doesn''t show up. I''ve tried various combinations of hash
2012 Oct 26
7
How to use Ajax with rails ?
Hi all, Can any one tell me how to use Ajax with Rails. Send me quick start up link and videos. Thanks Regards Fahim Babar PAtel -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this
2007 Jul 11
10
autocomplete in array
Experts, have you figure it out with autocomplete to pass as array objects? still i''m finding out the way to figure. :( regards, Bala --~--~---------~--~----~------------~-------~--~----~ 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
2007 Nov 22
7
Problem Installing RMagick with Instant Rails on Windows
I''m running Instant Rails 1.4 on Windows XP with SP2. I have downloaded the Windows binary version of RMagick from the RubyForge page. Specifically, I have downloaded: 1.14.1 binary gem for Ruby 1.8.5 (fixed for RubyGems 0.9.4) RMagick-1.14.1_IM-6.3.0-7-Q8-2.zip I have removed any older versions of RMagick using: gem uninstall RMagick I have updated my version of rubygems. I
2011 Apr 09
18
Rich text editor?
Hi all, would you recommend something to integrate rich text editor capabilities in a Rails app? I am currently looking at integrating Zoho Writer since it''s got so many features, but I was wondering whether somebody here knows of some gems or whatever that they would recommend for this kind of requirement. Thanks a lot in advance Vito -- Posted via http://www.ruby-forum.com/. --
2009 Jun 28
0
rake test:integration appears to load routes twice
Whilst trying to find out why I was having problems running Webrat, I put a puts into the routes file to see when it was loaded, and noticed it gets loaded twice. Is there any problem with this. It only happens with rake, not if running the test directly. for a large routes folder, it would add a bit to test startup time.
2009 Dec 16
0
mysql character set = UTF-8 on a cloumn in a migration
Hi, I want to change a single table field to UTF-8, but cant see a way of defining this in a migration. Does anyone know if there is a way, or if it has to be an sql snippet, how would I add that? Thanks Tony -- 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