[Rails] Re: Ruby on Rails IDE

2010-08-25 Thread MattB
> Aptana, particularly > RadRails/Studio for Rails 3, had still many problems of their own, last > time I looked. If that was Aptana Studio 2, it might be worth another look at Studio 3 beta. Works great for me with Rails 3. I'm on a Mac though, so can't comment on how it looks or behaves under L

[Rails] Re: Ruby on Rails IDE

2010-08-24 Thread MattB
. Matt. On Aug 24, 5:48 pm, Marnen Laibow-Koser wrote: > MattB wrote: > > You will get lots of opinions, but the only way to know for sure is to > > try them out, and see what works for you. Even then there will be lots > > of features that are not apparent or exposed at first,

[Rails] Modeling shmodelling!

2010-08-24 Thread MattB
Hi! I'm designing a Rails app that imports data from external sources, and would really appreciate some suggestions on the best way to achieve the following: Two models: Products & Categories, where the product details are imported from an external source on an ongoing basis, and have named cate

[Rails] Re: Ruby on Rails IDE

2010-08-24 Thread MattB
You will get lots of opinions, but the only way to know for sure is to try them out, and see what works for you. Even then there will be lots of features that are not apparent or exposed at first, so you need to take a bit of time to get to know them before making a decision. I'm currently using

[Rails] Re: form_for

2010-08-19 Thread MattB
This is a method generated for you by rails as a result of the associtions declared in the Post and Comment models - in this case belongs_to and has_many. Comments belongs to a post, and a post can have many comments. Rails creates quite a number of theses methods in response to the association,

[Rails] Re: CamelCase and Underscores

2010-07-09 Thread MattB
> You shouldn't need to. Because... (?) (Not being facetious). On Jul 10, 2:11 am, Marnen Laibow-Koser wrote: > MattB wrote: > >> variable_name > >> method_name > > > But why?! Since methods don't need (), how are we supposed to > > insti

[Rails] Re: CamelCase and Underscores

2010-07-09 Thread MattB
> variable_name > method_name But why?! Since methods don't need (), how are we supposed to instinctively know what's a method and what isn't when reading someone elses code? (Or our own when we've forgotten what we wrote!) Matt. PS. Anyone play spot the Ruby Newbie, score 10 points! On Jul 10

[Rails] Re: Non Database

2010-07-09 Thread MattB
Okay thanks, going to try that. Matt. On Jul 9, 1:32 pm, Colin Law wrote: > On 9 July 2010 12:40, MattB wrote: > > > > > HI Colin, > > > What might a model not derived from ActiveRecord look like, and what's > > the advantage of doing that? I'm lo

[Rails] Re: Non Database

2010-07-09 Thread MattB
HI Colin, What might a model not derived from ActiveRecord look like, and what's the advantage of doing that? I'm looking up data from a 3rd party API, but somply have the code in the controller, without a model. Tnx, Matt. On Jul 9, 9:18 am, Colin Law wrote: > On 8 July 2010 16:30, Colin Law

[Rails] Re: Non Database

2010-07-09 Thread MattB
There's also this: http://rubyforge.org/projects/net-tftp/ which I originally ignored as it's /old/ but the code looks quite clean. On Jul 9, 8:25 am, "Adrian Wadey" wrote: > Thank you Matt and Colin, both a great help. > > Adrian > > Hi Adrian, > > Have a look at this for some (Ruby) code ideas

[Rails] Re: Non Database

2010-07-08 Thread MattB
Hi Adrian, Have a look at this for some (Ruby) code ideas: http://pseudo-flaw.net/content/tftpgrab/ After that, it depends what your data looks like, and what you need to do with it. Matt. On Jul 8, 11:21 am, "Adrian Wadey" wrote: > Hi, > > I am looking at using Ruby in an application that,

[Rails] Re: Linking API derived data to my application's database

2010-07-08 Thread MattB
On Jul 8, 5:57 pm, Ar Chron wrote: > Use the id field for all your rails coding > - the product record and parent id of the child review records, and use > the barcode value to access the external 3rd party API data. Hi Ar, That's pretty much how I'd originally structured it when I was using a

[Rails] Re: Ruby on rails and android

2010-07-08 Thread MattB
You could do worse than to look at Rhodes which is an open-source cross-platform tool to allow development if mobile apps in Ruby.You could then link to a backend app developed with RoR. Supports Android and iOS amongst others. On Jul 8, 4:51 am, Nike Mike wrote: > How to develop rails applicati

[Rails] Linking API derived data to my application's database

2010-07-08 Thread MattB
Hi guys, Given a page that retrieves data from a 3rd party API, how would you then go about associating additional info in the application's database with that record? Specifically, the page displays info on a product, and I'd like to store and display locally created reviews for that product. T