Re: [Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Peter
OMG! Thank you. On Saturday, October 12, 2013 7:54:19 PM UTC-7, Carlos Figueiredo wrote: > > Try rename your file to bla_spec.rb > > Atenciosamente, > > *Carlos Figueiredo* > > > On Sat, Oct 12, 2013 at 11:33 PM, Peter >wrote: > >> Hello Everyone, >> >> Could anyone tell me why my spec/features ar

[Rails] Re: Nokogiri::XML::AttributeDecl methods output understanding

2013-10-12 Thread Eduardo Figarola
Hi, I hope the attached code explain all to you. Regards, Eduardo Figarola. Attachments: http://www.ruby-forum.com/attachment/8819/attrdcl.rb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

Re: [Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Carlos Figueiredo
Try rename your file to bla_spec.rb Atenciosamente, *Carlos Figueiredo* On Sat, Oct 12, 2013 at 11:33 PM, Peter wrote: > Hello Everyone, > > Could anyone tell me why my spec/features are not being read? > > Ruby 2.0 > Rails 4.0 > Rspec 2.14.0 > capybara 2.1.0 > > It is a fresh 'rails new some

[Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Peter
Hello Everyone, Could anyone tell me why my spec/features are not being read? Ruby 2.0 Rails 4.0 Rspec 2.14.0 capybara 2.1.0 It is a fresh 'rails new some_app'. I created a spec/features directory and added a bla.rb with bad syntax to cause it to fail, when I run rspec it says 0 examples and 0

[Rails] Re: What if you don't want your model to be from Active Record?

2013-10-12 Thread Robert Walker
Peter wrote in post #1124413: > By "wrap together", I meant I would write a single function for all the > functions I would use from the AWS API. > > So, I should put this in the models directory, right? I want the > controller > to remain a "controller" with respect to rails-isms. > > class MyAWSA

Re: [Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Peter
By "wrap together", I meant I would write a single function for all the functions I would use from the AWS API. So, I should put this in the models directory, right? I want the controller to remain a "controller" with respect to rails-isms. class MyAWSAPI def list_servers ... call to AWS

Re: [Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Jordon Bedwell
On Sat, Oct 12, 2013 at 5:06 PM, Peter wrote: > What if you don't want your model to be tied to a database therefore not > ActiveRecord, where do you put that model instead? In models, because nobody said models had to be ActiveRecord because models define behaviors but if you want the Railism th

[Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Peter
Hello Everyone, What if you don't want your model to be tied to a database therefore not ActiveRecord, where do you put that model instead? I want to write a class that would wrap together the various functions from, let's say, the AWS API. Would I write that class and place it in the models d

[Rails] Re: What license do you use for your Ruby gems?

2013-10-12 Thread Robert Walker
Jason Hsu, Rubyist wrote in post #1124349: > On Friday, October 11, 2013 7:21:57 PM UTC-5, Ruby-Forum.com User wrote: > >> >> That's really up to you AFAIK. I typically use the MIT license on my >> stuff, but choosing a license can be a fairly personal choice. It >> depends on what you're trying to

[Rails] Re: What license do you use for your Ruby gems?

2013-10-12 Thread Joel Pearson
I use the MIT license as well. It's common enough that users will recognise it immediately, and covers the basics while being succinct. -- 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 unsubs

Re: [Rails] Assets not loading in production

2013-10-12 Thread Phillip
Thanks Jordon, that's giving me a few things to go on. (Off to investigate...) On Saturday, October 12, 2013 4:15:18 PM UTC+1, Jordon Bedwell wrote: > > On Sat, Oct 12, 2013 at 9:45 AM, Phillip > > wrote: > > I am trying to deploy my first rails app in a production environment, > but > > cann

Re: [Rails] Assets not loading in production

2013-10-12 Thread Jordon Bedwell
On Sat, Oct 12, 2013 at 9:45 AM, Phillip wrote: > I am trying to deploy my first rails app in a production environment, but > cannot get the assets to load. The site is hosted on Webfaction, they advise > to create a "static app" to serve the assets which I have done. But I don't > understand how

[Rails] Assets not loading in production

2013-10-12 Thread Phillip
Hello, (Rails 4, Ruby 2) I am trying to deploy my first rails app in a production environment, but cannot get the assets to load. The site is hosted on Webfaction, they advise to create a "static app" to serve the assets which I have done. But I don't understand how my rails app then knows abo