similar to: Rails model design visualization

Displaying 20 results from an estimated 2000 matches similar to: "Rails model design visualization"

2009 Sep 24
8
Drop down list ?
Hi Gurus, I''m trying to tackle a drop down list. I have category and item dbs, and they''re wired up with category has_many :items and item belongs_to :category, and an item has a category_id. I have this code in my new/edit.html.erb for item: <%= f.collection_select :category_id, Category.find_main, :id, :header, {}, :multiple => false %> And a pretty drop down list
2010 Mar 24
3
More elegant solution for "missing" has-many through ids?
I have LabGroup and LabDesc which have many through LabDescGroup. I''d like to identify LabDescs which don''t have a LabGroup. This works: x = [] LabDescGroup.find( :all, :select => ''DISTINCT lab_desc_id'' ).each{ |c| x << c.lab_desc_id } y = [] LabDesc.find( :all, :select => ''id'' ).each{ |c| y << c.id } notfound = x - y But
2010 Jul 28
3
draw ER Diagrams for models
Hi I would like to know the relations ship between models by using er diagrams. How it is ?? please suggest me -- 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 to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from
2009 May 10
4
How to generate UML diagrams from existing ruby code?
Hi, thanks for reading. Till now, I''ve used railroad to visualize my models. But as far as I can see, there''s no possibility to add information about the model class methods. Methods are only added to a diagram, if you visualize your controllers. Is there a way to change this behavior? I''ve looked out for something else and found ''ruby-uml'', seems to
2009 Sep 25
12
uniqueness validation perplexity
I want to write a validate routine to check to enforce that a position must be unique in a category. (In another category, it doesn''t have to and shouldn''t need to be unique.) I write this code which works happily for new items: def position_in_category_not_unique @items = Item.find( :all, :conditions => [ "category_id = ? AND position = ?", category_id,
2009 Aug 26
5
Noob DRY method question
Hi Gurus, I''m learning the Rails framework, and I have this exact block of html/javascript in two places in an if/else construct in application.html.erb: <body onload="Modalbox.show(''<div class=\''warning\''> <p> <center> <%= flash[ :notice ] %> </center> </p> <p> <center> <input
2009 Dec 10
6
(annoying) question: Netbeans vs Rubymine
Hi, I''m don''t want to start another post about what''s the best IDE. Am just considering getting a licence for Rubymine which is 99$ I think. But I don''t know whether it''s really better than Netbeans. My focus is on BDD with cucumber, Rspec and Shoulda. Can anyone tell me his/her experience concering test support in those two IDE''s
2011 Mar 28
2
how to use ruby mine
i installed ruby mine 3.0.1 version., installed gems cucumber need to use cucumber and ruby with rubymine can u guide me for that thanks sri -- 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 group, send
2009 Sep 24
2
Calling ActionView from uninheriting class
Hi Gurus, I have a class, specified in models cart.rb, which doesn''t inherit from anything--it''s just a container class Cart ... I just discovered I can''t call number_to_currency in that class. Any idea how to "include" it in my code? I tried ActionView.number_to_currency without luck. I could kill a few lines of non-DRY regexp code in cart.rb if I could
2013 Mar 13
3
Help me about Test-Unit in Ruby on Rails
I''m using RubyMine for developing RoR and i found in RubyMine have Test file.But I read in rubyforge http://test-unit.rubyforge.org/ have Test-Unit for RoR.Could you help me about 2 problem: - how is different between RubyMine Test-Unit and Test-Unit in rubyforge - how can i run Test-Unit with Test-Unit in rubyforge(test-unit github: https://github.com/test-unit/test-unit.git)
2011 Apr 13
3
Question about ERB performance
I''m trying out rails 3 and I''m looking at the performance statistics given by WEBrick. It says many of my database operations are taking 2ms or 7ms... but the view is taking 40ms. People often say that the database is the bottleneck in applications (which it most certainly can be, and often is)... but isn''t the rendering of ERB a little show here? My test pages really
2011 Mar 08
6
RoR failure
I am a newbie at RoR and am disappointed by the fact that I couldn''t install it in my Ubuntu 10.10 using an IDE. I tried NetBeans 6.9.1, Eclipse 3.6.2, Aptana Studio and its plugin for Eclipse and RubyMine. There was always a problem somewhere (rails, rubygems, rake, etc) preventing me from working with my project. I currently have Netbeans 6.9.1 bundled with java jdk 1.6.0. I''ve
2009 Jun 16
2
Documenting Models
All, I''m trying to do some documentation on the models for our interfaces team. I espcially need them to be able to see the relationships belongs_to and validations. However, I must be stupid with rdoc because I can''t seem to get those two things in the generated documentation. Ideas?
2011 Mar 26
5
What is the best Ruby on rails IDE ?
What is the best ide for ruby on rails ?, I use linux. please forgive me if the question is elementary. I am java/.Net developer I want to broaden my horizon. -- 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 to this group, send email to
2011 Jun 11
8
Help with railroad
Can anyone help me install railroad gem? What I need is a simple class diagram of my rails website. Not necessarily with railroad (if you know any other software, for mac, that works). The website is http://railroad.rubyforge.org/ I couldn''t find any explanation on how to install it. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups
2010 May 21
8
Designing An Application (UML, Class Diagrams)
Hi Is there any freeware anybody would recommend for showing database models and how they relate to each other? I''m picking up an app another developer left in a mess and I''m trying to sort it out. Diagrams would be a great help. Suggestions? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2009 Mar 16
15
DEV Laptop : Ubuntu or Centos , Netbeans or Eclipse ?
After doing some playing around RoR ,now is time to make it real and start making money.. The target for now is to make simple website and get used to new tecnology (Github , capistrano and so on) Now I need to install the new DEV machine but .... Ubuntu (deb) or Centos (rpm) Netbeans or Eclipse Which combination is better ? -- Posted via http://www.ruby-forum.com/.
2010 Oct 21
2
PRoblem using railroad
I am trying to create class diagrams of my application using railroad but i am getting following error: Error loading application environment. (Are you running railroad on the aplication''s root directory?) /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load -- config/environment (LoadError) from
2012 Feb 28
16
Ruby IDEs
Hi, I''m a novice in Ruby , I want to ask what is the best IDEs to use Ruby for beginners ? Is eclipse a good choice ? any idea? Thanks a lot! Nada -- 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
2012 Oct 10
1
Rubymine Install Missing Gems
Hello All, I am using JRuby in Linux Ubuntu 10.10. In Rubymine IDE, I am getting as "Install Missing Gems" link. After clicking on that link, I am getting this error :- Installing pg (0.14.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for pg_config... yes Using config values from /usr/bin/pg_config