[Rails] Re: not able to start my first RoR project

2010-10-08 Thread Mark Thomas
On Oct 8, 6:08 am, Premanshu Mishra li...@ruby-forum.com wrote: I m running Java VM on my system. Is there any luck with WIndows that i can expect of.??? Yes, in fact JRuby is a good option on Windows. Download the latest version of NetBeans, which comes with JRuby, and you should be able

[Rails] Re: Validations should work, but aren't?

2009-11-09 Thread Mark Thomas
On Nov 9, 9:08 pm, Chris To rails-mailing-l...@andreas-s.net wrote: Hi, I've added a couple of validations to my model, however whenever I submit with no information (to purposely fail) in the view form, I just get a generic rails error message (the kind with all the stack trace

[Rails] Re: I've decided to use Rails... (I hope I made the right decision).

2009-08-16 Thread Mark Thomas
On Aug 11, 11:20 am, Phlip phlip2...@gmail.com wrote: Welcome to the cult. Older sites use older technology because - until 2 years ago - Rails was a fringe player using an obscure language. Rails now leads the adoption rate in new projects because it showcase what a fine language Ruby is.

[Rails] Dynamic drop-downs in a form_for using AJAX remote_function - Help

2009-08-11 Thread Mark Thomas
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I'm seeing. Hopefully it's a very simple fix, and I simply can't see the forest through all the trees! I am attempting

[Rails] Re: Dynamic drop-downs in a form_for using AJAX remote_function - Help

2009-08-11 Thread Mark Thomas
11, 2:50 am, Mark Thomas thomasm...@gmail.com wrote: Hello - ActionView::TemplateError (undefined local variable or method `f' for #ActionView::Base:0xb6e7b2f4) on line #1 of app/views/listings/ _automodels.html.erb: %= f.collection_select :model, @automodels, :model, :model, {:prompt

[Rails] Re: Ongoing errors with libxml mysql

2009-01-12 Thread Mark Thomas
On Jan 9, 3:48 pm, MikeyB brouk...@gmail.com wrote: Any ideas here? Thanks in advance for any help; I'm a beginner :) How did you install libxml2? Try installing from source, and see if you get any errors. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Define id in xml

2009-01-06 Thread Mark Thomas
On Jan 6, 5:53 am, Brijesh Shah rails-mailing-l...@andreas-s.net wrote: Hi I like to generate xml like users    user id=1           emailabc/email    /user    user id=2           emailabc/email    /user /users Here I want to display id in each user tag. So How can I do that?

[Rails] Re: Finding Child Records Efficiently

2008-12-30 Thread Mark Thomas
In a tree-based model, you have some tradeoffs if you want to retrieve multiple values efficiently. Usually this is an insert-time vs query- time tradeoff. For example, if you wanted to keep track of the number of descendants of any particular node, you would either have to traverse the node's

[Rails] Re: YUI widgets, and JSON datasource generated by rails.

2008-12-30 Thread Mark Thomas
I wonder if someone has tried to populate a YUI Datasource with JSON generated by a rails controller? (So to dynamicly updating a table, with a model represented in JSON format). Thanks, Christophe Perhaps YUI4Rails does this? http://github.com/mghaught/yui4rails/tree/master#README

[Rails] Re: Finding Child Records Efficiently

2008-12-30 Thread Mark Thomas
I forgot you wanted actual names instead of IDs, but the same principle applies. You can serialize strings in the same fashion. Also, in my previous post I said 'descendants', when really 'ancestors' is more appropriate. -- Mark. --~--~-~--~~~---~--~~ You received

[Rails] Re: web service

2008-11-24 Thread Mark Thomas
On Nov 24, 7:59 am, Subhadip Chakraborty [EMAIL PROTECTED] s.net wrote:  Hi,  i am creating a server side web service in ruby on rails.  but when i am installing gem actionwebservice, its gives an error  actionwebservice requires actionpack(=1.13.6,runtime).  how this problem will be

[Rails] Re: Actionwebservice as a SOAP client to .NET services.

2008-11-24 Thread Mark Thomas
On Nov 23, 9:50 pm, Tim Uckun [EMAIL PROTECTED] wrote: I have read the (scant) documentation on the datanoise actionwebservice gems and can't figure out how you are supposed to structure the SOAP client. You probably want SOAP4R. See http://rubyforge.org/projects/soap4r/ and also my tutorial

[Rails] Re: undefined method `to_query'

2008-11-18 Thread Mark Thomas
Object.new.methods.include?('to_query') = false exit You won't see it from IRB, because Rails extends Object with the methods. Try it from within 'script/console -- it works for me in Rails 2.0.2 (not sure about 1.2.3--that's fairly outdated). -- Mark.

[Rails] Re: error installing rcov gem on ubuntu 7.1

2008-11-13 Thread Mark Thomas
I think the recommended way is to do the following sudo apt-get install build-essential Then install gems the normal way. Otherwise you will be dependent on ubuntu repositories for all your gems with native extensions, and you may be stuck a few versions behind (or completely without -- is

[Rails] Re: help with JQuery

2008-11-12 Thread Mark Thomas
On Nov 12, 10:48 am, César [EMAIL PROTECTED] wrote: Hi,    have somebody experience using JQuery in an application Ror join to prototype?    somebody knows if is possible use Prototype and JQuery all together?    I am trying implement drag and drop effects in a table but nothing is

[Rails] Re: scaffold not working like i hoped......

2008-11-10 Thread Mark Thomas
Try Ryan Bates' nifty_generators gem. I haven't tried it yet (on my todo list) but supposedly it can generate controller and views by looking at the attributes of an existing model. See http://github.com/ryanb/nifty-generators/tree/master/rails_generators/nifty_scaffold/USAGE -- Mark.

[Rails] Re: LIBXML and LibXSLT

2008-10-22 Thread Mark Thomas
On Oct 20, 5:30 pm, Paul Harv [EMAIL PROTECTED] wrote: Hi, I installed libxml-ruby and libxslt-ruby. It took a while but it's running now. However, on the libxml site (http://libxml.rubyforge.org/install.xml) it says: ...libxml requires a few other libraries to be installed in order to

[Rails] Re: Help with regex needed

2008-10-22 Thread Mark Thomas
On Oct 22, 12:14 am, Kim [EMAIL PROTECTED] wrote: Hi here is the array I am scanning: [\ntdnbsp;a href=\/search~S13?/rWR%20121/rwr+121/1,7,9,B/ frameset~2489041FF=rwr+1211,1,\The Academic Writer: A Brief Guide/ a\n/td\ntd \nnbsp;Ede, Lisa\n/td\n\ntd \nnbsp;Valley Reserves -- VR 282  --

[Rails] Re: Hpricot loop question to read table row values

2008-10-08 Thread Mark Thomas
On Oct 7, 6:01 pm, Becca Girl [EMAIL PROTECTED] wrote: Hi. I've got a file that contains a table that looks like this: table   trtdcolumn title a/tdtdcolumn title b/td/tr   trtdrow 1 a/tdtdrow 1 b/td/tr   trtdrow 2 a/tdtdrow 2 b/td/tr   trtdrow 3 a/tdtdrow 3 b/td/tr   trtdrow 4