similar to: Custom Form Buttons

Displaying 20 results from an estimated 1200 matches similar to: "Custom Form Buttons"

2006 Aug 18
4
Button on view
Hi, I have a page containing 3 views (2 are partials). One of the partials needs to have a button that will clear a table called "messages" in the database. I can put a button like this "<%= button_to "Clear Messages", :action => ''clear_messages'' %>" and have the controller do "Message.delete_all". But the problem is that the
2010 Jul 28
6
FXTextField.connect(SEL_CHANGED)
When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised. The text is changed on the screen. How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100728/e0d169e5/attachment.html>
2006 May 08
2
Documentation for rails
I''m trying to convince a co-founder of the startup I''m working on that rails is the new black, or possibly the next sliced bread. Does rails ship with doc, or the API? I can''t even figure out how to download it from api.rubyonrails.com, or if that''s possible. When I look in C:\ruby\lib\ruby\gems\1.8\gems\rails-1.1.2\doc I see nothing of use. I have to admit
2009 Sep 26
3
how to pass value to method in controller
how to pass value to method in controller using button_to_remote button_to_remote ''check avaliability'', :url => { :action => ''check_for_unique_login'', :login => @user.login} above code is not working. -- Posted via http://www.ruby-forum.com/.
2010 Jun 18
1
how to pass params to button_to_remote ?
Hi folks, I have a form that I populate, and then submit with button_to_remote, but I would like to have all my fileds that I populated passed as parameters (like the params hash) with to my controller. How would you do that ? Reagrds -- 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
2006 Jul 17
1
RDoc
Newbie question: In the Rails documentation it often reads something like > See the RDoc on ActionController::AutoComplete to learn more about > this. How do I generate/view this documentation? (I''m on Mac OS X) Thanks in advance Sebastian -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 12
3
url_for in tests
Hi there, I''ve added an extra bunch of testing features for doing in-browser testing with Selenium, and am having quite a time figuring out how to use url_for with having a controller object present. I''ve tried using ActionController::Base.url_for and ActionView::Helpers::UrlHelper.url_for but haven''t been able to get something that works. What I want to be able
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like <a href="http://www.google.com" target="_blank" >google</a> with the link_to function ? Thanks
2006 Jan 18
5
redirect_to with an anchor, how ?
Hello, I try this : redirect_to :action => ''infos'' , :id => params[:id] , :show => "comments#a" i want this : .../infos/15?show=comments#a but I have this : .../infos/15?show=comments%23a Someone could tell me how generate an anchor link ? Thanks
2006 Mar 07
13
hosting multiple rails apps in one webroot?
It''s actually REALLY easy with lighttpd on linux. Two apps... Myserver.com/code/ => /apps/code/ Myserver.com/test/ +> /apps/test/ Each application needs this in the environment.rb /apps/code/config/environment.rb ActionController::AbstractRequest.relative_url_root = "/code" /apps/test/config/environment.rb ActionController::AbstractRequest.relative_url_root
2009 Jun 11
4
Using view helpers and route helpers in a model
Hi there, I am trying to get something working and its driving me crazy. I have been looking around for solutions to getting view helpers working in models and for the most part I find this solution. Add the following in the model you want to use them in include ActionView::Helpers::UrlHelper include ActionController::UrlWriter However, when I try something like
2006 Feb 28
5
List and update installed gems?
Hi, could someone tell me how to list and update the currently installed gems on my rails installation? Thanks in advance, -Conrad
2018 Jul 26
4
Problem with definition of slist in CFEngine
Hey folks, I have a problem with the definition of a variable of type slist in CFEngine on # uname -a ; cat /etc/redhat-release Linux policyhub.example.com 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux CentOS Linux release 7.4.1708 (Core) I'm not sure if its valid to ask CFEngine questions on this mailing list, but as far as I'm running on
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2009 Jan 06
1
How to access text helper and url helper methods in model
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper Also
2006 Feb 22
3
ri docs for Rails?
I cant find ri docs for any of the Rails classes. Do I have to generate them? I do see RDoc files. john
2009 Oct 05
4
Friendly_id and Rake problem.
Hello there, The plugin friendly_id (http://github.com/norman/friendly_id) has rake tasks that you can call. I''m using this plugin as a gem. I''m trying this: rake friendly_id:make_slugs MODEL=Post and it is rising this error: Don''t know how to build task ''friendly_id:make_slugs'' So the question is: how do I call a gem''s rake task? David
2005 Dec 16
7
offline copy of the api site ?
Hi, Is there a archive off http://api.rubyonrails.org/ so that I can view it without net access? Kind Regards, Herbert _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2005 Dec 23
3
Getting ri to include rdoc for my rails gems
I''ve installed Ruby 1.8.2 and Rails 1.0 on Windows XP and it''s working great. However, ri, doesn''t seem to know about any of the rdocs for the rails classes. For example if I run "ri --classes" none of the ActiveRecord classes are listed. What''s the correct way to get ri to include rails classes? Thanks, Todd -- Posted via