Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want a way to comprehensively view:
1. what's going on in my database
2. what the schema looks like
Is there a good tool that lets you do that?
There's a gem Active Admin that lets you do that: http://activeadmin.info/documentation.html
And of course you can use any other Administration tool that lets you connect to your database, for instance Squirrel http://squirrel-sql.sourceforge.net/ which connects to various sql databases, sqlite among them.
For development and testing, I would say the preferred way of knowing your data is generating it automatically using tools like FactoryGirl or Faker and look into schema.rb for the schema.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have an application I would like to sell to potential clients. When I deploy and install this application on their server I would like to have something that automatically creates some demo data.
Is there a way to do this? Or would that be done with seeds?
Yes, you can use rails scaffold to generate resources and yes you can use seeds to create demo data in your db.
You add any data that needs creating in your seeds.rb file and execute them using bundle exec rake db:seed.
see here for some examples on how to do it
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
i would like to code a Registration Form + Login form for iOS. I don't know very well which DB i can use. I thought to use PHP + MySQL. Do you think is a good idea?
Who can explain me the best option?
iOs app should know nothing about DB. You need to make an API in some other langulage (PHP in your case), which will work with DB.
MySQL is good option as it's free and has a lot of features.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to look through different APIs for bitcoin transactions, but havn't been able to find a clear path for what I'm trying to achieve. I was hoping some one could explain to me an easy way to send bitcoins based on the entered amount from the user on a form. I'm going to be using ruby on rails to create the site.
With ruby on rails its very simple. Coinbase has its own gem: gem 'coinbase' which you can add to your gem file. Then simply look in the docs (https://coinbase.com/api/doc) and the source code (https://github.com/coinbase/coinbase-ruby) of the gem to find what you need to do. Hope this helps!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
What is the best way to manage multiple Rails applications?
I heard Rack is a good tool to use and I was wondering if all Rails apps can share the same session so the users don't have to login twice.
I'm also using EmberJS aswell.
If you're using token-based authentication, you can maintain a single database table for the user model across both apps (have them both connect to the same database, prefix all tables for app 1 with app1_ and for app 2 with app2_, except for the User table which is unprefixed).
To prefix all the tables for one app, you can set
config.active_record.table_name_prefix = "app1_"
in the environments.rb file of app 1, and
config.active_record.table_name_prefix = "app2_"
in the environments.rb file of app 2.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've been thinking about starting an open source admin panel for rails using the cappuccino JavaScript / Objective-J web framework..
How would I get started?
Are there any resources you can point me to, that explain dynamic scaffolding like code generation?
Thanks and looking forward to collaborating if anyones interested?
Daniel
You may want to take a look # rails_admin. It is a port of Merb Admin. It's still pretty young, but may give you ideas on the approach.
ActiveScaffold has been around for a while too which may be another good reference project.