Displaying 20 results from an estimated 6000 matches similar to: "Designing An Application (UML, Class Diagrams)"
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 Mar 04
25
how to share variables in data migrations (up/down)
hi there,
    How do we share variables in a given data migration?
 For example,
 the code below fails to work because "statuses" don''t seem to be in
scope for both up and down.
class AddDefaultValuesToStatuses < ActiveRecord::Migration
    statuses = [
        {
            ''details'' => ''details'',
        },
        {
           
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
2010 Dec 06
15
Windows new installation - Always problems
I would like to know if there is a way to ''package'' an application
with all the associated gems and ship it to a new server and having it
to "just work" in a Windows environment.
Although I have never done it I know that Rails can be frozen into the
application. I am wondering if I can do the same thing with other
gems. I have found this
2010 Dec 25
7
I sit possible to write it in one line ? Array init + Array loading
I am always writing it in 2 lines : ( Array init then loading the
array )
    @providers = []
    @authentications.map {|authentification| @providers <<
authentification.provider }
Is there any Ruby writing for writing just one line ?
thanks fyh
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
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
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
2010 Jul 02
22
MySQL not Connected ...... *pull hair*
I''m trying to run " rake db:migrate " and im getting an error back:
------------------------------------------------------------------------
C:\wamp\www\demoproject>rake db:migrate
(in C:/wamp/www/demoproject)
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
(`version`
varchar(255) NOT NULL) ENGINE=InnoDB
(See full trace by running task
2009 Oct 23
10
Rspec Tutorial
Hi Everybody,
Greetings!!
I want to use rspec for my applications. Please guide me with the Rspec
tutorial.
I want a good example to start with.
Please help me by providing good tutorials on Rspec to start with.
I actually followed the example from http://rspec.info
Please guide me on more examples.
Waiting for your reply.
--~--~---------~--~----~------------~-------~--~----~
You received
2010 Apr 01
6
Rails model design visualization
I''m a fairly visual person, and I have a piece of paper with many
boxes and arrows with labels like "has many" and "belongs to" for my
database models.  It''s messy, but it works.
What I keep looking for--weeks, actually, I''m certain it''s out there,
but I haven''t hit on the right set of Google query terms :)--is
something that will
2010 Oct 06
16
Dealing with an EAV database
I''ve inherited an EAV database and there''s really no option to remodel
it.  Data is stored as key_name, key_value pairs
Trying to return a meaningful, unified recordset is far too complex to
be efficient.
I''ve decided to make use of the MySQL GROUP_CONCAT, and CONCAT_WS
functions to return a fast query result, with the consolidated fields
as one string.
The final data is
2010 Sep 18
11
Commenting in an ERB without generating a compiling error
Hello,
I have the following:
<% @projects.each do |project| %>
  <tr>
.
	<td><%= link_to ''Destroy'', project, :confirm => ''Are you
sure?'', :method => :delete %></td>
.
  </tr>
<% end %>
How can I safely comment out the TD line above? Do I have to use the
=begin way?
-- 
You received this message because you
2009 Nov 11
4
Sessions
I''m an experienced programmer, but new to Rails.
I would like to echo an unanswered question I''ve recently read 
elsewhere.
Can any recommend an overview of get/post, cookies, sessions, etc.,
and how Ruby on Rails interacts with all of this?
I''m interested in understanding how to harden a Rails application
Regards
-- 
Dave
2010 Jun 28
4
Downtime notifier
What methods do people use to notify users of upcoming downtime in an
application, and for handling requests nicely while scheduled downtime
is occurring? My Google-fu is not yielding me anything useful-looking.
-- 
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
2009 Oct 22
11
UFT8 String looks great in MySql, garbage in browser
Hi,
I have some seed data in MySql which contains non-ASCII characters (as
you''d imagine as these are worldwide placenames that I''m storing). In
MySql on the command line they look great, they''re all formatted
perfectly, including Arabic and Chinese characters and they look great.
However, when I ask my Rails model for one of these fields, and render
that in the
2009 Aug 06
20
Changing from database sqlite3 to mysql - windows
Hi Guys
I''d like to know how to change from using sqlite3 to mysql. I''m
running windows xp. What is the command that I must type under my
application folder? How to I log into the mysql database afterwards?
My database.yml file contents at the moment are:
# SQLite version 3.x
#   gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
  adapter: sqlite3
 
2010 Oct 31
9
self.where('section = ?', '%:search_item%')
I am trying to do a search where I can enter a part of a word and the
search find all occurrences of that part word in the field. The above
subject does not work. Can anyone help
I am using Rails 3 and ruby 1.9.2
I use to be able to do it in rails 2.x.
In my Model I have the following:-
  def self.search(search_item)
    if search_item
     self.where(''section = ?'',
2010 Apr 14
35
Conditionally adding a link to a form -- how?
I''ve got two entities created by scaffolding: Expense & Vendor
In Expense#new there''s a form with a Vendors-drop-down and a NewVendor-
button.
The latter button brings up Vendor#new.
The Create button in Vendor#new brings up Vendor#show with Edit & Back
links.
I want to append a third link conditionally to Vendor#show: if the
Expense#new form led to the Vendor#show
2010 Oct 19
33
Render partial generate unwanted spaces
Hello, I have a problem with the render :partial method in all my
rails webapplications. I noticed that using render :partial will
generate spaces (mainly top spaces) on the elements inserted.
As all my websites are seperated by module (basicaly header, content,
menu, footer) it''s quite a problem as I have to set negative margin-
top to various parts for the site to display as expected
2009 Dec 23
4
html parser / assertions in a model
I am using http.get in a model to parse html code returned from a Oracle
server.
My first try was to use assertions (assert and assert_select) to test
and parse the html code. But I have problems including the methods in
the model. Have tried both "include" and copy/paste to get assertion
methods into my model. Works as a model, but I get load errors when I am
using the model from a