similar to: How to reorder rows in a table?

Displaying 20 results from an estimated 500 matches similar to: "How to reorder rows in a table?"

2005 Nov 25
2
acts_as_list with 2 fields in the scope
Hi Railers, I''ve got a Categories table. I want it to act as a list within the scope of the parent_id AND the site_id. Categories table : id label site_id parent_id So, in my Category class, I have : acts_as_list :scope => ''site_id = #{site_id} AND parent_id = # {parent_id}'' The problem is that when I try to move_up a Category with a parent_id that is null,
2006 Mar 03
3
TinyMCE or FCKEditor (WYSISYG editor)
TinyMCE or FCKEditor? which one is the best from your experience? Or anything better than these two for rails env? Thank you all, - Dunnil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/7350e5df/attachment.html
2005 Nov 23
8
Compiler OR Obfuscator for RoR applications?
Hi folks, I''m a newbie in the Ruby land, The Ruby language and RoR looks really great but I think in my situation there is a problem, we are an ISV that sells web application and we don''t want our clients see our source code, I searched the web but couldn''t find any way to compile and\or obfuscate ruby code (in web (RoR)), is there such tool available for the language?
2006 Nov 04
11
[OT] What''s the best way to install ruby/rails on Mac OS X?
Hello folks, I''ve newly bought a Mac and am new to it. I want to install Ruby on Rails on it (Ruby, Rails, SVN, Apache, MySQL, ...) but I''m not sure which way is the best. Should I go for Fink? OpenDarwin? Or just install them directly on mac. What about something in Fink, something in OpenDarwin and something directly? I''m a bit confused, may you please give me a
2006 Mar 03
2
FCKEditor Image uploading feature
Hello, I followed instructions on http://www.joshuamcharles.com/rails/fckeditor.html Added FCKEditor to my rails app which works great, but I''m not able to upload images using the WYSISYG editor. Is there a way to enable this feature in rails app? If not, where is the images folder that FCK looks into it for images, so I can upload my images manully there? Thanks, - Dunnil --------------
2006 May 31
19
Rails Deployment: Book recommendation?
Hello, I''m seeking a book on rails deployment (I think a general deployment on nix book can helps too) I need in depth information about Apache, FastCGI, (LightTPD maybe). I was thinking always I know what a web server is! but when I think more deeply about it (after reading Capistrano doc) it seems I need more info about app, web and db servers. stuff like how to config the app server
2006 Jan 30
3
params on controller and view
Hi, I have a link that says: <%= link_to_remote("Data", :update => ''pie_graph_div'', :url => { :action => :show_pie_graph, :mode => ''nums'' }) %> which calls *show_pie_graph*: Controller: def show_pie_graph render :layout => false @mode = params[:mode] end View: <img src="/surveys/make_pie_graph/<%=@mode%>"
2006 Jun 15
25
[Very OT] MacBook defects: should I buy a MacBook?
Hello, First and foremost sorry for off topic message, but I thought maybe you smart guys can help me to decide about purchasing a MacBook or not. I was going to buy a MacBook but I found a story on digg.com about case discoloring and after googling the subject I found MacBook defects: http://www.appledefects.com/wiki/index.php?title=MacBook_Pro I''m totally confused, should I buy it?
2006 Apr 19
4
emacs rails 0.39
Testing version of Emacs Rails (http://rubyforge.org/projects/emacs-rails/) was released. If you have some suggestion or you find some bugs please inform us. Features: * Management of WEBrick/Mongrel * Display color log file * Toggle Switch between Action/View and other file (tests, helpers) automaticly or with menu * Switching to file from current line f.e. from redirect_to :controller =>
2006 May 09
25
[OT] How do guys create round corner boxes? Which Graphic tool?
Hello, Yes, I know it''s off-topic and nuby question, but I really don''t know anything about graphic, I''m all a coder who lives in his text editor, so sorry at first! I need to create round corner box for my web app, I know how to form a box using CSS, I just dunno how to create those rounded corners. Is there an easy to use tool for creating them, out there? Thank you
2006 May 12
5
Is there a method for incrementing string names?!?
Hello, I have model which has a property named "name", I want to append a number to the end of the name when there is similar name in db. name, name1, name2... Is there a ready to use method in ruby and/or rails for doing so? Thanks in advance, - Dunnil
2006 Jan 31
2
Problem generating CHM Rails doc
Hi, I have problem generating chm file for the rails doc. I''ve commaned the rdoc to generate the chm by: rdoc -f chm -o chm_folder action* rails-* It gave me the following error: vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15: Expected class name or ''<<''. G ot RubyToken::TkLT: "<" By adding
2004 Dec 19
1
Crash when reading OGG/Vorbis file
I'm seeing a crash when reading an OGG/Vorbis file. I'm using OGG 1.0 / Vorbis 1.0. The crash occurs in _vds_shared_init because the passed in vorbis_info *vi points to a structure containing all 0s (and thus crashes on the line b->modebits = ilog2(ci->modes); as ci is NULL. Following the stack, I see that _vds_shared_init is called by vorbis_synthesis_init which is called
2006 Apr 16
11
Multiple domain name, One Rails application, is this possible?
Hello folks, I''m new to the Rails framework and don''t know where to look to find my answer. Here is the question, Is there a way to set multiple domain name for *a* rails application, and base on the URL do the work in the app. Imagine I have a user based document management system, each user want to access to her docs using her domain, but I don''t like to have many
2006 Feb 11
9
Upgrading to Ruby 1.8.4 and strange problems!
Hi folks, There is a strange problem here, I''ve installed the latest version of One-Click Ruby installer [1.8.4-16 preview3], everything went fine, and after that I''ve installed Rails 1.0. No problem in setup process, but now, when I try run my rails application, there are many strange things happening. In one my application no CSS apply, looks like there is no CSS file, and
2002 Jan 22
2
Peak value
Hi, While testing ReplayGain (so it could be related to a bug), I noticed the following gain comments for a file: RG_PEAK=1.71580 RG_RADIO=-7.91 dB RG_AUDIOPHILE=-6.72 dB I've never seen such a large peak. Not that I've looked much, nor have I analyzed the file further. I just thought I should mention it. :) The file is the track Board Burner by Mixmaster Mike, available at:
2006 Feb 05
2
request.request_uri in production environment?
Hi, What''s the problem with this line? <%= ''height="750" valign="top"'' if request.request_uri =~ /survey_result/i %> No problem with development environment but when uploading to server I get application error. And is there a better way to do this? Thanks
2006 Mar 12
2
counter_cache reference/tutorial
I''m trying to use counter_cache, but I''m not doing something right. It is unreliable and I keep having to correct it manually. Is there a good tutorial or reference on how to use it on-line? I have the AWDR book, but I need something more complete. TIA, Jeffrey
2006 Apr 28
9
[AWDR] Tutorial in A4 wont ''destroy'' items
Hello, I''m working through the tutorial, and I''ve run into a little snag. In the first part of the tutorial, the destroy link is not working correctly. I can''t figure out where I goofed. Removing :confirm doesn''t seem to resolve the issue. Thanks, Randy. development.log ----->8----- Processing AdminController#destroy (for 127.0.0.1 at 2006-04-27
2006 Jun 25
6
Understanding Common Views
Hi Everyone, I''m trying to formulate my thoughts on how views work in RoR and I understand the basic bits - 1. Every controller has its own view defined using rhtml files in the views/[controller_name] folder. 2. There is one "view" file (rhtml) for every in the controller and has the same name as the method. 3. For portions that are common, partials can be used - file