The easiest way to have an external process run within your application
context is to write your external app in ruby and run it inside a call to
*rails
runner ... *. You pay a penalty at startup but gain access to your
application's environment (think *rails console*).
There is nothing inhere
http://www.postgresql.org/docs/9.3/static/ssh-tunnels.html
https://dev.mysql.com/doc/workbench/en/wb-manage-db-connections-ssh.html
On Tuesday, March 25, 2014 7:05:24 AM UTC-4, Ruby-Forum.com User wrote:
>
> Hi everyone, does anybody know how to connect to production DB over ssh
> tunnel using
Assuming your data is in a file named 'list.txt', here's a crude but
effective way to do it.
* # initialize your result to an empty hash result_hash = Hash.new #
read in your data one line at a time File.open('list.txt').each do
|line|# break the line on commas, less the la
If you open a terminal window you can use the unix command *ls -als* to get
a long listing of all files in the current directory. In the same terminal
window the command *man ls *will give you the manual page for the ls
command.
On Sunday, March 23, 2014 6:11:52 AM UTC-4, Colin Law wrote:
>
> O
require 'simple-rss'
require 'open-uri'
@health_and_science = SimpleRSS.parse
open("http://www.npr.org/rss/rss.php?id=1007";)
@health_and_science.entries.each do |f|
printf("NPR Feed: %s %s\n", f.pubDate.to_date, f.title)
end
On Friday, March 21, 2014 1:39:17 PM UTC-4, Kenny Meyer wrote:
>
i would put the image in assets/images and refer to it as:
:url("Jumbotron2.png")
On Tuesday, March 18, 2014 8:45:33 AM UTC-4, mike2r wrote:
>
>
>
> On Tuesday, March 18, 2014 8:01:48 AM UTC-4, Ruby-Forum.com User wrote:
>>
>> mike2r wrote in post #1140207:
>>
>> > I would probably put the image
I would suggest Solr or MongoDB or (you pick) some other NoSQL db tool as a
focus for item 4.
Git hard to beat for a source control choice.
You should add automation tools for working your production release
(installation, backup, error recovery, ...).
On Thursday, March 20, 2014 5:32:00 AM UT
You need some idea of the form of :name. Lets assume it's a whitespace
separated string like "Brandon Q. Public". You could simply use ruby's
String.split. Of course if some users are royalty you could end up with
lots of users named "Sir" or "Princess".
On Sunday, March 9, 2014 6:54:35 PM UTC
ns?
On Wednesday, March 5, 2014 10:52:16 AM UTC-5, Rick wrote:
>
> Can you replicate the error on a development system that is connected to a
> local version of the database? I'm thinking you might want to really hammer
> on the system and not impact the production db.
>
>
30 NW 8th Street *I* Suite 205 *I* Sunrise, Florida 33325
> Office: 954-251-4471 *I* Mobile: 954-579-7799
> dweb...@mdlive.com I www.mdlive.com
> "Changing the face of medicine"
>
>
> On Wed, Mar 5, 2014 at 10:19 AM, Rick >wrote:
>
>> Are you really trying to ma
Are you really trying to match a users.id of x or is that just a log
artifact? Is your MySQL server local or remote? What happens if you issue a
"Customer.find(x)" in rails console? Obviously you need to provide a
valid id, not x.
On Tuesday, March 4, 2014 12:43:35 PM UTC-5, David W
On Tuesday, March 4, 2014 12:04:46 PM UTC-5, Steven Cahill wrote:
>
> Thanks Rick
>
> on the actual categories page the categories are listed in category_id
> order correctly, I have the following code in my controller
>
> # GET /categories
> # GET /categ
Step zero point one is to review your 6/7 plugins and 5/6 gems and ensure
they've been moved forward to your final target.
On Tuesday, March 4, 2014 4:05:51 AM UTC-5, Colin Law wrote:
>
> On 4 March 2014 05:09, Raju Ay >
> wrote:
> > I would like to upgrade one of my application from rails -2.3
Not sure from your question, you seem to be asking "How do I sort the
Categories index?" but you've provided a link_to that deals with a single
Category. Typically, you'ld order your Categories in the controller index
method and the ordered list would be available in the index.html.erb view
as
you might look here: http://wiki.apache.org/solr/SolrReplication
On Monday, March 3, 2014 12:22:43 AM UTC-5, Ruby-Forum.com User wrote:
>
> Hello People,
>
> In one of my rails projects I use solr via sunspot gem. I was wondering
> if its possible to back up solr indexing so that when I move fro
not unlike swimming out of a black hole. good exercise but you're unlikely
to cross the boundary to normal.
On Saturday, March 1, 2014 1:05:40 PM UTC-5, Rodrigo Mendonça wrote:
>
> I think oposite
>
> in js true == "true" // this return true
> in coffee true == "true" # return false
>
> in js we
It's been a while since I last struggled with the 1.8.7 / 1.9 ruby
transition with rails 3 and mysql but I'm wondering. Is it possible you
have a version issue in the 'gem install...' sequence that's causing your
rails app not to connect to mysql?
On Wednesday, February 26, 2014 11:34:52 AM UT
looks like the harmony gem depends on the johnson gem which depends on
nodejs which, of course, isn't a gem. try installing nodejs - see:
nodejs.org.
rick
On Monday, February 24, 2014 5:50:07 AM UTC-5, saravanan p wrote:
>
> Hello everyone,
>
> saravanan@ubuntu:~$ ruby -v
t in a Mac developer's license - it's worth the cost to
be close to the Apple development community.
Rick
On Wednesday, February 26, 2014 5:46:22 AM UTC-5, Peter Hickman wrote:
>
> Speaking as a long time Mac user I have to say that if you are comfortable
> with Linux on a cheap
This announcement surfaced back in the late seventies:
"*CAUTION*: *The Programmer General has advised that excessive use of
Syntactic Sugar has been shown to lead to Hardening of the Semi-Colon*."
It has never been retracted, as far as I know.
On Wednesday, February 19, 2014 10:09:27 AM UTC-5,
you want to do: rake db:create
On Tuesday, February 18, 2014 5:08:05 AM UTC-5, Ruby-Forum.com User wrote:
>
> Hi i try to do that createdb mytestdb
> [root@localhost catarse]# createdb mytestdb
> createdb: could not connect to database postgres: FATAL: role "root"
> does not exist
> give this
st. In
either case, you want to use an MD5 password to establish the connection to
the server.
You should probably get familiar with the normal PostgreSQL options and
start a conversation with your server provider.
Rick
--
You received this message because you are subscribed to the Google G
On Monday, January 27, 2014 5:00:27 AM UTC-5, Ruby-Forum.com User wrote:
>
> By everything I mean everything. Untouched by assets pipeline.
>
> External javascript libraries, like CK Editor for example, dynamicly
> load javascript and css in runtime, depending on settings. So compiling
> them
On Thursday, January 23, 2014 11:46:03 AM UTC-5, Martin wrote:
>
> Hi there,
>
> When I have a model with
>
> has_and_belongs_to_many :keywords
>
> and a keyword is added or removed, how can I make it to update its
> updated_at timestamp?
>
Hard to say without knowing what "it" you expect to s
you might do better with the Ruby on Rails: Core group...
On Friday, January 24, 2014 12:44:22 AM UTC-5, Anand Vignesh wrote:
>
> Hi there,
>
> I'm Vignesh developer @ Rails application. I was now getting an issue
> while I'm migrating my existing application with rails '3.2.13' into rails
> '4.
You might consider having a link_to testimonials within a project view that
would provide a list of prior responses related to that project and a
link_to request_testimonial if none exists. You should keep all project
customer information private to the customer / developer team and only
allow
One approach would be to define a domain specific language and implement a
compiler. This would give you an opportunity to check both the form
(lexical scanner) and content (syntax checker) of the user input and map
all legal requests on your data.
For obvious reasons, this language should not
didn't realize you were on a windows box - life can be somewhat less
rational there. unix has used the same permissions model and change
commands since it's inception in 1970. calcs showed up sometime around
windows2000/xp and has now been depricated for use on windows7.
here's a thread tha
When changing a file's name you need to have write permission on the
containing directory.
On Monday, January 13, 2014 7:08:35 AM UTC-5, vuk...@gmail.com wrote:
>
> Hi
>
> I want to change the filename with File.rename but I get "Permission
> denied" eve if I change the file with File.chmod(-777
On Thursday, January 9, 2014 3:04:59 PM UTC-5, Marc Munro wrote:
>
> Following up on my original post, with another question. Thanks to Walter
> and Rick for replying earlier.
>
> To clarify: my database is PostgreSQL. By database objects I mean tables,
> views, schemas, t
On Monday, December 30, 2013 5:26:45 PM UTC-5, Marc Munro wrote:
>
> How can I separate the database DBA user and app access user in rails?
> The app user will be able to run the app but perform no DDL. The DBA user
> will be used for migrations.
>
> I do not want the user that runs the rails
It sounds like you're in a tangle between FSM states and ActiveRecord
states. You might need to add a payment_queued state that forces an AR
save before transitioning to do_pay. You could then add some logic that
fires a loop back to through do_pay (retry n times after increasing
timeout) bef
On Friday, August 30, 2013 12:31:18 PM UTC-4, Ruby-Forum.com User wrote:
>
> Hi,
>
> I am a newbie to Ruby. I have installed and set up Netbeans in windows
> 7. I have created a new project but i am not able to see Gemfile in the
> project tree view. can some one help me.
>
> thanks
> vijay
Using http://guides.rubyonrails.org/getting_started.html as a guide.
Create, Read, Delete all work. Update fails:
NoMethodError in WordsController#update
private method `update' called for #
(I chose to make a list of words rather than of posts.)
The Request parameters:
{"utf8"=>"✓",
"_me
scope "/crm" do
resources :users
end
scope "/admin" do
resources :users
end
The solution I'm thinking of is to rewrite using Apache. But, first I'd
like to know if I can do this within the routes because I have many
apache configs, but just one route file.
Dave Aronson wrote in post #1118796:
> I've done a similar thing before, and no you don't have to sprinkle
> client-choosing logic throughout your views. What we did, to enable
> mobile-friendly views IF the client was on the mobile domain, was to
> check the domain and, if it was the mobile one,
more than I can chew, or sounds reasonable enough
to proceed?
Thanks for any advice
-Rick
--
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 unsubscribe from this group and stop receivin
On Friday, July 19, 2013 6:42:44 AM UTC-4, Rick wrote:
>
>
>
> On Friday, July 19, 2013 3:47:49 AM UTC-4, Ruby-Forum.com User wrote:
>>
>> apt-get are only for linux machines, and I am currently operating on a
>> Mac OSX. And for oh_my_zsh one needs a zsh of 4.3.9
On Friday, July 19, 2013 3:47:49 AM UTC-4, Ruby-Forum.com User wrote:
>
> apt-get are only for linux machines, and I am currently operating on a
> Mac OSX. And for oh_my_zsh one needs a zsh of 4.3.9, but mine is
> currently at 4.3.11. All I need is 4.3.12-5.0.0+ zsh in order to run RVM
> witho
On Monday, July 15, 2013 12:30:45 AM UTC-4, Arslan Farooq wrote:
>
> Hi,
>
> I am learning Ruby. In the meantime, I have to make a simple app for a
> small company that I know how to make in PHP and MySQL.
>
> I have not started learning Rails yet (first I want to finish the Ruby
> book I have
It's really hard to help you without seeing the code that is causing the
error and the log that gives the details of the error message. For
example, your problem could be as simple as using *:style => *(singular)
instead of *:styles =>* (plural) in your model.
Also, it's could be that you are
You only need multiple copies of any gems that require a specific version
to run with your current ruby. GEM_PATH can include multiple directories
just as the shell PATH does. So if you're running two different ruby
environments, RUBY_A and RUBY_B, you could use a GEM_PATH that looks like:
RU
On Monday, July 8, 2013 5:26:15 AM UTC-4, Ruby-Forum.com User wrote:
>
> Colin Law wrote in post #1114588:
> > It is likely that he is getting all records back (as shown by #count)
> > and that 138 is the lowest id.
>
>
> Nope:)
>
> The reason I noticed is that when I did a find all I wasn't
Straight from rails4.0 documentation:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html
Creating an index with a specific method
add_index(:developers, :name, using: 'btree')
generates:
CREATE INDEX index_developers_on_name ON developers USING btree (nam
Direct from Rails4.0 ActiveRecord documentation:
Creating an index with a specific method
add_index(:developers, :name, using: 'btree')
generates:
CREATE INDEX index_developers_on_name ON developers USING btree (name) --
PostgreSQLCREATE INDEX index_developers_on_name USING btree ON developer
the answer is to be found here:
http://guides.rubyonrails.org/association_basics.html
On Sunday, June 30, 2013 2:56:59 PM UTC-4, Ruby-Forum.com User wrote:
>
> Hi all,
>
> 0 down vote favorite
>
>
> I have two models - "symbols" and "users". Among other attributes,
> symbols has "created_by_i
dynamic_form was included in Rails2 but stripped out of Rails3 (and 4).
It's now available as a gem.
On Friday, June 28, 2013 11:19:16 AM UTC-4, Ruby-Forum.com User wrote:
>
> Wins Lin wrote in post #1113811:
> > I remember for sure there was a explanation with screenshots about
> > dynamic_f
;/foo(3)"
Then params[:id] should be "3"
But currently params[:id] returns "(3)"
I don't want to make :id optional.
Thanks!
Rick
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubsc
Here's a link that's a little more current that sheds some light on the
issue: https://github.com/rkh/rack-protection/issues/45
On Saturday, June 15, 2013 9:10:10 PM UTC-4, Josh Jordan wrote:
>
> Jose Valim implies that autoloading is threadsafe in Ruby 2.0:
>
> The issue with this approach is th
"Also, when I type in `which ruby` it freezes the console. "
I think whatever ruby you think you're running is damaged. Based on the
rails output about needing 2.0 but having 1.8.7 I guessing you'ld be well
served by uninstalling 2.0 and redoing the install. How about if you type
"ruby --vers
heisenberg.
On Monday, June 3, 2013 11:57:20 AM UTC-4, Michel Pigassou wrote:
>
> Hmm thanks. Is it worth it to report this to the Rails team?
>
> On Monday, June 3, 2013 5:17:37 PM UTC+2, Rick wrote:
>>
>> I just noticed that your error does, in fact, appear in my output.
&
recurrence_id", 1], ["updated_at", Mon, 03 Jun 2013 15:15:11
UTC +00:00]]
Here
(49.1ms) commit transaction
=> true
irb(main):004:0> c
=> #
irb(main):005:0>
My guess is it's a "test mode" artifact of some kind.
On Monday, June 3, 2013 11:13:26 AM
I cannot duplicate your error running your github example. Here's what I
see:
/Dagnan/rails_inverse_of 656 > rails --version
Rails 3.2.13
/Dagnan/rails_inverse_of 657 > ruby --version
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
/Dagnan/rails_inverse_of 658 > ruby -Itest test/
here is done through rvm. make yourself a working directory, cd there and
run the *rails new* command. something like:
*
mkdir /home/mwr/RailsApps*
*cd /home/mwr/RailsApps
rails new my_new_app
*
On Friday, May 31, 2013 11:28:19 PM UTC-4, Ruby-Forum.com User wrote:
>
> Hi Rick,
> thanks
for what it's worth, the error message is generated in the file:
gems/railties-3.2.13/lib/rails/commands.rb
On Friday, May 31, 2013 9:09:16 PM UTC-4, Rick wrote:
>
> There are (at least) two executable ruby scripts named "rails". The first
> is found in your typical s
There are (at least) two executable ruby scripts named "rails". The first
is found in your typical search path and should be the one that gets called
when you type "rails new my_app". The second is found, after creating your
new application "my_app", in the directory "my_app/script" (rails ver
What is the command you are using to create a new rails app? Just to be
sure, type the command into a terminal window and copy / paste the command
you typed and the output from rails.
On Friday, May 31, 2013 7:49:14 PM UTC-4, Ruby-Forum.com User wrote:
>
> ruby -v gives ruby 1.9.3p429 (2013-05
I finally figured this out. I have an action that only renders html, but
googlebot for instance wants text. So, I added this to the controller and
everything works!
before_filter :force_html_requests, :only => :show
def force_html_requests
request.format = :html
end
Rick
I finally figured this out. I have an action that only renders html,
but googlebot for instance asks for text format. So, it tries to find
action.text.erb which doesn't exist.
I added this to my controller and everything works now.
before_filter :force_html_requests, :only => :show
def force
On Wednesday, March 6, 2013 8:34:10 PM UTC-5, Matthew Robinson wrote:
>
> Hi,
>
> Can anyone assist with API connection with Shopify?
>
> We are looking to connect and link our shopify account with an inventory
> fulfillment center that we are using. The logistics company has provided us
> with
I would suggest you use as little non-RoR baggage as possible when starting
out. An editor that does auto indent and context color highlighting is
nice, if you're already comfortable with it. Also avoid rvm initially, and
git, and any db other than sqlite. All these items have there own learn
The original announcement of Rails 3.2.10... was posted on *January 2*.
The current version is at 3.2.12. It's quite possible the 2.3 branch has
also advanced.
Rick
On Sunday, February 24, 2013 9:47:00 AM UTC-5, Ariel Tal wrote:
>
> Hello,
> I was looking to migrate the patc
's already familiar -
they'll just need to learn what you want and understand what their
predecessor has done.
Rick
On Wednesday, December 5, 2012 8:19:15 AM UTC-5, Brian wrote:
>
> Hi There,
>
> I'm hoping you guys can help me out. I have recently developed an iphone
&
Excellent suggestion. From the page view I see this agent:
Mozilla/5.0 (compatible; oBot/2.3.1; +http://filterdb.iss.net/crawler/)
So, how do I setup my app to only accept html requests for those routes?
Or, just not fail when it wants text?
Thanks
--
Posted via http://www.ruby-forum.com/.
:in
`render'
/var/www/procyon-live/app/controllers/pages_controller.rb:154:in `show'
...
Rails 3.0.9.rc5
Ruby 1.8.7
Obviously I didn't want to include the entire backtrace. Let me know if
it would help.
Thanks,
Rick
--
Posted via http://www.ruby-forum.com/.
--
You received this mess
ple online database (described above) on a website,
plus a button from our Facebook page for East Boulder County United (see
http://www.facebook.com/EastBoulderCountyUnited?fref=ts)
to the database.
If anybody is willing to help me with this, please let me know at
caseyr...@gmail.com
Thank you for yo
http://www.ruby-doc.org/core-1.9.3/MatchData.html#method-i-pre_match
On Thursday, September 6, 2012 1:40:31 AM UTC-4, John Merlino wrote:
>
> I looked in ruby documentation
>
> http://www.ruby-doc.org/core-1.9.3/Regexp.html
>
> I cannot find a method called pre_match but its used in Rails...
>
3.2$* which ruby
/Users/richardlloyd/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
*bash-3.2$ *$(which ruby) --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]
*bash-3.2$ *
*My suggestion is to uninstall your ruby-1.9.3-p194 and install a clean
copy.
Rick
On Monday, July 23, 2012
My guess is you've got something wrong in your shell environment. What do
you see when you type:
$(*which ruby) --version*
NOTE: this is proper syntax for sh, bash, or ksh. For csh use: *`which
ruby` --version*
Rick
On Monday, July 23, 2012 7:15:39 AM UTC-4, Ruby-Forum.com User
I don't see *gem install rake* in the list of tasks you ran after
reinstalling ruby et. al.
Rick
On Saturday, July 14, 2012 1:06:16 AM UTC-4, Ricky D wrote:
>
> So, long story short, I had o format and reinstall my OS hence all my
> dev utilities.
> git env sorted.
> DevKi
google rails demo app yields
http://ruby.railstutorial.org/chapters/a-demo-app
looks like a good place to start
Rick
On Thursday, July 12, 2012 7:02:06 AM UTC-4, Amardeep Singh wrote:
>
> HELLO
>
> I need some Demo Project of ROR to practice on it..Plz anyone help me to
> start
Go to http://guides.rubyonrails.org/association_basics.html and you'll find
what you need.
As a side note, you should bookmark http://guides.rubyonrails.org/ and get
familiar with its' contents.
Rick
On Wednesday, July 11, 2012 9:47:55 AM UTC-4, Ruby-Forum.com User wrote:
>
ou're running on a unix system (any Linux or OSX) this command will
find them all when run within your application directory:
*find . -name \*.rb -exec grep your_new {} \; -a -exec grep YourNew
{} \; -a -print*
Rick
On Monday, July 9, 2012 3:13:02 PM UTC-4, Ruby-Forum.com User wrote:
of httpd you're using so you don't get a
mismatch with the docs. The FAQ at the same site is also helpful.
Rick
> Kind Regards and Thanks in advance.
>
> Gurdipe
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
;
> Has anyone else seen this situation before?
>
> If, after you create a new record in your database, you just use the
browser's back button (or delete) to go back in history to your original
index you will not see the new data.
To demonstrate this just use:
*1> rails new demons
hand your document off to someone else to build the second. Fold their
comments and changes into your document and have another person build the
third server.
Also, always have fun.
Rick
On Friday, July 6, 2012 4:18:54 AM UTC-4, Frederick Cheung wrote:
>
> On Jul 5, 6:32 pm, Louis Davin wrote
Hi,
I'm new to RoR. I am interested in Project Fedena (http://projectfedena.org/),
an open source school information system. Actually the bare open source
code base is not much help to me by itself, but Foradian sells a "Pro"
version (http://www.fedena.com/solutions). The project has been in th
I am evaluating an application that runs on RoR 2.3.5. What are the
liabilities of an application that is based on this older version of RoR? I
am concerned about security and ease of development. How common is this in
the Rails world?
TIA
--
You received this message because you are subscrib
rails server on this
> client using a diff port , i cant retrieve the DB records . Anyone who
> have used Activeresource could throw some light on this?
>
Your class Record has the site and port hardwired in with the line:
*self.site = "http://0.0.0.0:3000"*
You ne
s is so, type:
*alias rake*
Rick
On Sunday, June 10, 2012 7:19:30 AM UTC-4, der_tom wrote:
>
> inline
>
> On Sun, Jun 10, 2012 at 12:30 PM, Colin Law wrote:
>
>> On 10 June 2012 11:19, tom wrote:
>>
>> Top posting still :(
>>
>> > yes, thats
How about running: "export RAILS_ENV=development ; rake about"
What does rake report for Environment in this case?
On Sunday, June 10, 2012 6:30:39 AM UTC-4, Colin Law wrote:
>
> On 10 June 2012 11:19, tom wrote:
>
> Top posting still :(
>
> > yes, thats correct
> >
> > RAILS_ENV=development
- REMOTE SOURCES:
- http://rubygems.org/
Can anyone tell if this is incorrect? Do I need to uninstall and
reinstall gems?
Any suggestions much appreciated...
--rick
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups &qu
You'll probably have better results if you use the read method. CSV.parse
is meant to be applied to a String.
>From the docs:
*
parse( str, options = Hash.new ) { |row| ... } click to toggle source
parse( str, options = Hash.new )
This method can be used to easily parse
CSV
If your strategy is to just keep the newest MAXNUMBER records you might
consider just adding an after_create method to your model.
On Friday, April 27, 2012 4:56:30 PM UTC-4, Colin Law wrote:
>
> On 27 April 2012 16:23, Jedrin wrote:
> > We want to use SQL/active record for logging but limit t
Check that you have gcc installed.
This error comes up if it is not installed, because of the method they
use to check the existence of sqlite3.h: They simply try to compile this
one-line program:
#include
If the compilation fails, they tell you that sqlite3.h is missing, but
the compilation wi
C3" to UTF-8 in conversion from ASCII-8BIT to
UTF-8 to US-ASCII for History.txt, skipping
ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
Any idea what's going on?
thanks in advance
Rick
--
You received this message because you are subsc
Ok.. So I've been doing more reading after buying a few RoR books
now.. I've got
my data models setup without any foreign keys between the tables (much
to my dismay).
What I'm wondering are the following :
1) should I be manually setting up the foreign keys by editing the
initial migration
st
d_columns_to_addresses column_1:string column_2:integer
> ...
> rails g migration remove_columns_from_addresses column_1:string
> column_2:integer ...
>
> The generator will try to figure out what you're attempting to do if you give
> it some basic instructions and if what yo
to ensure that the migrations don't bite me
since this is just
the VERY early stages of an application..
-- Rick
On Jul 28, 2011, at 11:50 PM, Chris Kottom wrote:
> If you want to do revisions on existing tables (adding columns, changing data
> types, etc.) you can use migrations for th
why I resorted to hand-edits.
I'll do some more
reading on what you suggested.. Thx!
-- Rick
On Jul 28, 2011, at 11:22 PM, Chris Kottom wrote:
> Are you not using generators for the initial creation of your model and
> migration source files? I'm asking because I think I can
Ok.. Still working on this stuff.. I've got the t.reference in the migration
for the address class and moved the belongs_to and has_one in the model classes
as indicated (I didn't notice that!).
I noticed in the association-basics that I should be putting a create_table
function (if that's what
iles, so there's no way of knowing whether you've
> defined the relationships there.
>
> See:
> http://guides.rubyonrails.org/migrations.html
> http://guides.rubyonrails.org/association_basics.html
>
> On Thu, Jul 28, 2011 at 8:53 AM, Rick & Nellie Flower
>
Ok.. So I've got my initial table structures setup and I was hoping I could
have associations help me out with something akin to embedded/nested objects
but without the direct nesting (unless there's another way to achieve that
goal)..
So, I've got an Address class that looks like the following
On Tue, 26 Jul 2011 09:11:53 -0700 (PDT), Frederick Cheung wrote:
On Jul 26, 5:06 pm, Rick & Nellie Flower wrote:
> Sounds like you want either validates_with, which enables you to
> package up a set of validations into something reusable or
> validates_associated, which would t
On Tue, 26 Jul 2011 05:37:42 -0700 (PDT), Frederick Cheung wrote:
On Jul 26, 6:20 am, Rick F wrote:
[ snipped ]
So -- is this sort of compound objecting possible in Rails or should
I
just eliminate the first two classes and add their respective fields
directly into Users?
Sounds like you
Hi all.. Just trying out Rails for the first time.. I've got a project
I'd like to port over from another environment and am just not sure
how to achieve the same sort of OO goodness I'm used to.. In my other
environment, I've declared a few classes similar to the following
(these are only a few of
Thanks Fred,
So I backed the rails version to 2.3.3 and all is well again. I would
think others would see this issue as well in 2.3.5?? I tried 2.3.11 and
the problem for me remains there as well.
Anyway, I am going to see if I can find out what changed between 2.3.3
and 2.3.5 to cause my pain
Hi all,
Running Rails: 2.3.5
Ruby: 1.8.7p302
Firebird: 2.1
I am running into a weird issue. When connecting to a firebird database
I get the following on any model that uses "validates_uniqueness_of".
Other validations work fine. The unique check is simply on a name field.
I should add this code
If you are a non profit organization, you have a chance to obtain a nice
html to pdf converting library - PD4ML for
Ruby for free from http://pd4ml.com/. Just contact them.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ru
? I
could not find a command-line switch etc.
For now the plan has been to remain all 32-bit versus getting everything
to 64-bit...maybe that is not solid thinking.
Any information is appreciated...
thanks,
Rick
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
1 - 100 of 781 matches
Mail list logo