[Rails] Re: Princely Plugin: get nil.size error

2009-08-09 Thread Brijesh Shah
Hi Unfortunately I don't remember it. I just remember that I applied a patch in one of the file of gem. Apply below patch in var/lib/gems/1.8/gems/htmldoc-0.2.0/lib/htmldoc.rb file. @result[:output] = result result.split("\n").each do |line| + line.strip! (patch) case line when /^BYTES: (\

[Rails] Doubt in submit_to_remote?

2009-08-09 Thread karthik k
hi i have one page where i have check boxes , when i select one check box and click the below <%= submit_to_remote 'activate', 'Activate', :url => {:action => 'search_activate'} %> below is my check box <%= check_box_tag "agency[agencys_id][]" , agency.id%> it is not even going to controller

[Rails] Re: ajax file upload question

2009-08-09 Thread Vinay Seshadri
Can you be more descriptive? If the file is related to the model who's form is on the page, then the file can and should be a part of the form for that model. If the file is unrelated to the model who's form is in the page and/or you want to include a separate form for the file upload, then you ca

[Rails] Re: ajax file upload question

2009-08-09 Thread Chris Habgood
Well the file upload was not working because it is a form inside a form. On Sun, Aug 9, 2009 at 11:46 PM, Ram wrote: > > why do you need it outside the main form? is the main form also going > to be there on that page? > you might want to check out form_tag > > http://api.rubyonrails.org/classes

[Rails] Re: calling a jQuery function from RJS/onclick

2009-08-09 Thread Ram
anyone?? anything? On Aug 7, 4:36 pm, Ram wrote: > Hi, > > I have the followingjQueryfunction on the head of my page. > > >                jQuery.noConflict(); > >                 /* calling jNice on document ready */ >                jQuery(document).ready(function($) >                 { >    

[Rails] Re: ajax file upload question

2009-08-09 Thread Ram
why do you need it outside the main form? is the main form also going to be there on that page? you might want to check out form_tag http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M001729 good luck! On Aug 8, 9:58 pm, Me wrote: > anyone? > > On Aug 7, 3:55 pm, Me wrot

[Rails] Re: how to get id of other table

2009-08-09 Thread wasim akram
thankyou S.Ross the problem is I have to get cont.id associated with each fac (foreign key)and in the @cfacs=Fac.all(:joins=>:conts, :select=>"facs.name") i'll rewrite it as @cfacs=Fac.all(:joins=>:conts, :select=>"facs.*,facs_conts.*,conts.* ") On Sun, Aug 9, 2009 at 1:11 AM,

[Rails] Call AR belongs_to association accessor ID method on object assignment

2009-08-09 Thread Andrew France
Hi, Haven't been able to find this raised before but I'm sure it must have been. When assigning an object to a belongs_to association I would like it to call the *association*_id= method instead of directly updating the attributes array. This is because I want to modify the behaviour when assigni

[Rails] REST and confirmation page routing

2009-08-09 Thread Hunt Jon
Hi I'm new to Rails. I need to make a simple CRUD website. I need a dedicate confirmation/preview page for each "create", "update" and "delete" action. For the "delete", I cannot use a JavaScript pop up function. In each preview/confirmation page, a user should be able to press a browser's back

[Rails] Re: ActiveRecord - <%= and <% yielding different records

2009-08-09 Thread djolley
Guess what? IT'S BACK! A variant of the problem has re-surfaced. I'll try to get something together tomorrow to illustrate the issue. Of course, now that I have things better organized, I may find the solution in the process. One way or another, I'm hoping that we'll be able to get to the botto

[Rails] A rails sitemap plugin

2009-08-09 Thread flyerhzm
Hi, guys: I wrote a sitemap plugin for rails yesterday. This plugin will generate the public/sitemap.xml from config/sitemap.rb whose format is very familiar to config/routes.rb. I think it is very helpful if you have a website written by rails and want it to be crawled by spiders such as google,

[Rails] Re: CDN for Rails - any recommendations?

2009-08-09 Thread Alpha Blue
Thanks Eric. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscr

[Rails] Re: how to use ‘constantize’ in custom c ontroller module

2009-08-09 Thread boblu
Thank you for your reply. Actually, that eval is a typo. But I found by removing that 'eval' did resolved my problem here. Thank you very much. On 8月10日, 午前2:55, "s.ross" wrote: > Hello-- > On Aug 9, 2009, at 9:39 AM,bobluwrote: > > > > > > > I have a module like this: > > > module Controller

[Rails] Re: active record multiple table inheritance with abstract parent

2009-08-09 Thread boblu
Thanks a lot for your reply. I just tried your suggestion, but I did not get luck. This is the console output: Jp::Property.first TypeError: can't dup NilClass from /rails/activerecord/lib/active_record/base.rb:2189:in `dup' from /rails/activerecord/lib/active_record/base.rb:218

[Rails] Re: CDN for Rails - any recommendations?

2009-08-09 Thread Eric
They should all be pretty much the same, requiring only certain URL prefixes for your content. You may have to randomize hostnames if you go with one that allocates blocks of nodes, but that's about it. -eric On Aug 9, 3:10 pm, Alpha Blue wrote: > Are there any good recommendations for CDN's (C

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Marnen Laibow-Koser
Alpha Blue wrote: [...] > The largest join I have now is 7 tables on indexed results. Those > queries are only taking 3ms apiece. OK, that sounds *way* better. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --~--~-~--~--

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-09 Thread Marnen Laibow-Koser
WalT wrote: > My system is perfectly fine, Then you are *extremely* lucky. The steps you described taking had the potential to cause big problems. Don't push your luck. Don't do that again. > and everything works smoothly & I'm > smooth sailing getting even deeper into Ruby! I'm even going

[Rails] [ANN] Lone Star Ruby Conference 2009 - 18 More Days till Showdown

2009-08-09 Thread jimfreeze
Greetings from Austin - Home of the Lone Star Ruby Conference. This year we are catering to your every desire. In addition to the customary luxuries you have come to expect at LSRC, like the awesome food or the power strips at every table for your hungry laptops, this year you will also be greet

[Rails] Re: Options in command line in scaffold generations

2009-08-09 Thread Pavel
ARGV return array, but it don't fit me, becouse I have many other parameters - [field:Type, field:Type] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] Options in command line in scaffold generations

2009-08-09 Thread Pavel
I write: ./script/generate manage_scaffold product PARENT=structure but, when I try to use ENV['PARENT'] it always is nil value. How can I get parameter value from option in command line, when scaffold is generating model? P.S. "manage_scafold" is my owner plugin: require 'rails_generator/gene

[Rails] Re: xml-containing models

2009-08-09 Thread Simon Macneall
The other option (and I doubt it is supported in Rails yet) is Oracle's, XML support. It is limited, but allows you to do finds by xpath. We've used it for a JEE project, and it can make this sort of thing a bit more manageable. Simon On Sun, 09 Aug 2009 22:26:56 +0800, jhaagmans wrote

[Rails] Re: Re-initialising page after validation fails

2009-08-09 Thread Andrew Myers
Thanks Matt - that sounds like the solution I am after. Also thanks for the advice re variable names. I am coming to Ruby from Java and have a bit to learn in that regard. :-) Matt Jones wrote: > > This is a very typical use of helpers - you could put this code into > app/helpers/bid_helper.

[Rails] CDN for Rails - any recommendations?

2009-08-09 Thread Alpha Blue
Are there any good recommendations for CDN's (Content Delivery Networks) for use with Rails? I was looking at Amazon Cloudfront but am just curious if anyone has used CDNs with rails and whether or not you find a particular one more useful than the other. Many thanks. -- Posted via http://www.r

[Rails] Re: Relationships not working...

2009-08-09 Thread Audrina Steel
Frederick Cheung wrote: > You association is called comments so you need to write p.comments. > The method is called build (not new) so p.comments.build(...). You > should also watch your singulars/plurals: class names should be > singular or weird stuff may happen further down the line. I tried

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-09 Thread WalT
My system is perfectly fine, and everything works smoothly & I'm smooth sailing getting even deeper into Ruby! I'm even going to read & watch all the Ruby on Rails books/tutorials that I can find including lynda.com. If you can't explain something to an old lady then you don't understand it. Plai

[Rails] Re: Relationships not working...

2009-08-09 Thread Frederick Cheung
On Aug 9, 10:40 pm, Audrina Steel wrote: > However, in the ruby console after assigning a post object to p (>> p = > Posts.find(1)) the command > > >> p.comment.new(:author => 'me', :content => 'Enter all the content you > >> desire here...') > You association is called comments so you need

[Rails] Relationships not working...

2009-08-09 Thread Audrina Steel
I've just stated programming with Ruby on Rails a few days ago. I'm trying to set up a simple Blog. To this point I have a Posts.rb model and controller and a comments.rb model and controller with a "has_many :comments" in posts.rb and a "belongs_to :posts" in comments.rb. Furthermore, the comment

[Rails] Deploying Rails book

2009-08-09 Thread Paulo J. Matos
Hi all, With the fast changing rails, it is always hard to know how up to date Ruby books are. As far as I could tell, Rails recipes is basically obsolete and Advanced Rails recipes is a better choice. But what about the Rails Deployment book from Pragmatic Bookshelf from May2008. Would you say i

[Rails] Re: active record multiple table inheritance with abstract parent

2009-08-09 Thread Michael Guterl
boblu wrote: > I have four tables: jp_properties, cn_properties, jp_dictionaries and > cn_dictioanries. > > And every jp_property belongs to a jp_dictionary with foreign key > "dictionary_id" in table. > > Similarly, every cn_property belongs to a cn_dictionary with foreign > key "dictionary_id"

[Rails] Re: Error while installing ruby-postgres gem

2009-08-09 Thread Jai Jk
This command worked for me sudo gem install --include-dependencies postgres I think it is a good idea to always include dependencies :) Jai -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[Rails] Formhelper somehow?

2009-08-09 Thread RVince
I have a select box, which is a javascript mashup that allows for an editable select (i.e. index 0 is editable). I have it specified in nearly straight html / js in my .html.erb form. The option values > 0 I would like to read from a table (I have a Channelnote model and table creates, and I woul

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Alpha Blue
Hi Marnen, Right now, the max time I'm pulling using the query routines that now have proper indexes and are broken down into manageable pieces runs anywhere from: 18ms - 24ms I don't think that would create a DB meltdown considering these numbers are without caching enabled. I would imagin

[Rails] Re: how to use ‘constantize’ in custom c ontroller module

2009-08-09 Thread s.ross
Hello-- On Aug 9, 2009, at 9:39 AM, boblu wrote: > > I have a module like this: > > module Controller > module LocaleModels >def self.included(base) > base.send :include, InstanceMethods >end > >module InstanceMethods > def locale_Lexeme; constantize_model('Lexeme') end >

[Rails] Re: validates_format_of

2009-08-09 Thread Marnen Laibow-Koser
Conrad Taylor wrote: [...] > validates_numericality_of only determines whether something is numeric That's true. And that may be all that the OP really needs here, which is why I suggested it. [...] > [0-9] is just another way of writing \d. Thus, it's really a personal > preface and > both ar

[Rails] Re: xml-containing models

2009-08-09 Thread jhaagmans
> But to the OP, I have another question: what exactly is getting out of > control about your schema?  There's nothing wrong with having lots of > tables (and lots of model classes) if your data is best modelled that > way.  Is this simply a "fear of adding classes" situation, or is there > some o

[Rails] Re: ActiveRecord - <%= and <% yielding different records

2009-08-09 Thread bill walton
On Sun, 2009-08-09 at 09:47 -0700, djolley wrote: > THE GOOD NEWS: I followed Bill's suggestions for cleaning things up > and when I finished it all worked! :) Congrats! > THE BAD NEWS: I still have no idea why my original code (bad as it > may have been) didn't work. > > > My guess, however,

[Rails] Re: validates_format_of

2009-08-09 Thread Conrad Taylor
On Sat, Aug 8, 2009 at 7:05 AM, Marnen Laibow-Koser < rails-mailing-l...@andreas-s.net> wrote: > > jhaagmans wrote: > > You will have to tell Ruby that this is a so- > > called "double". > > I don't think that will help at all. However, I believe there's a > method called validates_numericality_o

[Rails] Re: ActiveRecord - <%= and <% yielding different records

2009-08-09 Thread djolley
THE GOOD NEWS: I followed Bill's suggestions for cleaning things up and when I finished it all worked! :) THE BAD NEWS: I still have no idea why my original code (bad as it may have been) didn't work. > My guess, however, is that by the > time you 'get things to work as desired', you will have

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Marnen Laibow-Koser
Alpha Blue wrote: [...] > So, when I say we can agree to disagree - I'm referring to the "timing" > of the optimizations. I believe they should occur "after this season", > with proper testing, and implementation. I don't think there's necessarily a disagreement there -- I agree that you sh

[Rails] Re: validates_format_of

2009-08-09 Thread Marnen Laibow-Koser
Conrad Taylor wrote: > On Sun, Aug 9, 2009 at 9:08 AM, Marnen Laibow-Koser < > rails-mailing-l...@andreas-s.net> wrote: > >> > Andrew, does the following work for you? >> >> Best, >> -- >> Marnen Laibow-Koser >> http://www.marnen.org >> mar...@marnen.org >> > > I was able to successfully match t

[Rails] how to use ‘constantize’ in custom contr oller module

2009-08-09 Thread boblu
I have a module like this: module Controller module LocaleModels def self.included(base) base.send :include, InstanceMethods end module InstanceMethods def locale_Lexeme; constantize_model('Lexeme') end def locale_Synthetic; constantize_model('Synthetic') end

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Alpha Blue
In order to make the DB change work I would have to perform the following: I would have to change how my parser pulls data and uploads data I would have to change the querying for all MVCs in my project .. that's just for starters .. That is a lot of work. I look at things from a priority pers

[Rails] Re: validates_format_of

2009-08-09 Thread Conrad Taylor
On Sun, Aug 9, 2009 at 9:08 AM, Marnen Laibow-Koser < rails-mailing-l...@andreas-s.net> wrote: > > Conrad Taylor wrote: > > On Sat, Aug 8, 2009 at 5:28 AM, Andrew Myers < > > rails-mailing-l...@andreas-s.net> wrote: > > > >> > >> > >> Andrew. > > > > > > Andrew, does the following work for you? >

[Rails] Re: RichTextEditor

2009-08-09 Thread toamitku...@gmail.com
tinymce 3.2.5 is pretty flexible !! On Aug 9, 4:01 am, Fernando Perez wrote: > I use TinyMCE, and like it very much. > -- > Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: validates_format_of

2009-08-09 Thread Marnen Laibow-Koser
Conrad Taylor wrote: > On Sat, Aug 8, 2009 at 5:28 AM, Andrew Myers < > rails-mailing-l...@andreas-s.net> wrote: > >> >> >> Andrew. > > > Andrew, does the following work for you? > > /^[0-9]*\.[0-9]{2}$/ I'm not Andrew, but I can tell you that that will have the exact same problem as his ori

[Rails] Re: xml-containing models

2009-08-09 Thread Marnen Laibow-Koser
Matt Jones wrote: > Don't. Just don't. Your database is not an XML parser; see this > article: > > http://thedailywtf.com/Articles/JOIN_ON_WTF.aspx > > Note that the WTF database described there is almost exactly what > you've described. Matt, you beat me to it. I was about to write a response

[Rails] Re: validates_format_of

2009-08-09 Thread Conrad Taylor
On Sat, Aug 8, 2009 at 5:28 AM, Andrew Myers < rails-mailing-l...@andreas-s.net> wrote: > > Hi, > > I have this in one of my models: > > validates_format_of :amount, :with => /\A[0-9]{1,5}\.[0-9]{2}\Z/ > > If I enter an amount that ends with ".00", eg. 123.00 or 300.00 it > fails, and I cannot und

[Rails] Re: Re-initialising page after validation fails

2009-08-09 Thread Matt Jones
On Aug 8, 7:20 am, Andrew Myers wrote: > If validation fails in the "create", I get an error something like: > >  NoMethodError in Bids#create > > Showing app/views/bids/new.html.erb where line #8 raised: > > You have a nil object when you didn't expect it! > You might have expected an instance

[Rails] Re: formating date and time

2009-08-09 Thread Matt Jones
If you want it formatted this way all the time, you might also want to consider setting a format in Time::DATE_FORMATS via an initializer. In your case, you'd drop this code into a file in config/initializers (say, date_formats.rb): Time::DATE_FORMATS[:default] = "%A %d %Y at %H:%M:%S" That sho

[Rails] Error while installing ruby-postgres gem

2009-08-09 Thread Jai Jk
Hi, I am new to Ruby on Rails. I am running rails on Mac OSX 10.5.7. I get an error when I run this command sudo gem install ruby-postgres The error is as follows - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for main(

[Rails] Re: xml-containing models

2009-08-09 Thread Matt Jones
Don't. Just don't. Your database is not an XML parser; see this article: http://thedailywtf.com/Articles/JOIN_ON_WTF.aspx Note that the WTF database described there is almost exactly what you've described. On a more serious note, I'd recommend that you take a look at some of the schemaless data

[Rails] Re: ActiveRecord - <%= and <% yielding different records

2009-08-09 Thread bill walton
Hi Doug, On Sat, 2009-08-08 at 09:41 -0700, djolley wrote: > > All of the above suggestions may be valid, however it does not explain > > how, once the OP has managed by fair means or foul to get hold of the > > member object that it manages to mutate between his two uses of it. > > OK. I want

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Marnen Laibow-Koser
Alpha Blue wrote: [...] > I mentioned in paragraph two that I will be setting up a test > environment for it. OK; I missed that. > But, again, I'm not going to alter my production DB > at this time. The season is just a couple weeks away and it wouldn't > allow for enough time to implement

[Rails] Re: Div is shown only from the layout nowhere else

2009-08-09 Thread Konstantinos Loupos
No i dont. I am confused. Any suggestions?? Thinking of using a partial but i am not quite sure. On Mon, Jun 22, 2009 at 6:55 PM, Nicholas Henry wrote: > > OK, so you know what you need to do then? > > On Mon, Jun 22, 2009 at 11:40 AM, Kostas L. wrote: > > > > Yes you are correct. I am only creat

[Rails] Re: Shared partial working with controller

2009-08-09 Thread Kostas L.
Thanx Sijo that worked! I've really forgotten :locals usage!!! On Aug 6, 1:48 pm, Sijo Kg wrote: > Hi >     Can't you use like > > render :partial => "shared/partial_name", :locals => {:books => @books} > > Sijo > -- > Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~-

[Rails] Controller in subfolder help

2009-08-09 Thread Kostas L.
Hi guys, i've created a scaffold in an admin folder. the folders are app/ controllers/admin/books_controller and app/views/admin/index, new etc... I changed routes.rb to look like this: ... map.resources :books map.namespace :admin do |admin| admin.resources :books end ... But i am h

[Rails] Re: Speeding up ActiveRecord Querying on very large joins?

2009-08-09 Thread Alpha Blue
Marnen Laibow-Koser wrote: > Poppycock. You might not be willing to alter your production DB this > season, but you *can* (and probably should) set up a testing environment > to see what you can do. > I mentioned in paragraph two that I will be setting up a test environment for it. But, ag

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-09 Thread Marnen Laibow-Koser
WalT wrote: > To all the guys using Windows OS and want to use mysql as your > database: > > I went around all the forums of ruby that I could find on the internet > and I'm glad I got the answer that I was looking for: > > The path that I was looking for was G:\Ruby\bin. Ignore the wording > 'a

[Rails] Re: validates_format_of

2009-08-09 Thread Marnen Laibow-Koser
Andrew Myers wrote: > Thanks all for your suggestions. It's definitely dropping the final "0" > as Jaap suggested. > > I think I can work around it by changing the regular expression to: > > /\A[0-9]{1,5}\.[0-9]{1,2}\Z/ Apparently you did not read my earlier post in this thread. Please do

[Rails] Re: xml-containing models

2009-08-09 Thread jhaagmans
Thank you for your response, Simon! It's an option, but I prefer an option in which I could actually use one, readable definition of a machine in one single MySQL field. I know I will have to map all those attributes some way or another, but I can think of situations in which I do not only have

[Rails] active record multiple table inheritance with abstract parent

2009-08-09 Thread boblu
I have four tables: jp_properties, cn_properties, jp_dictionaries and cn_dictioanries. And every jp_property belongs to a jp_dictionary with foreign key "dictionary_id" in table. Similarly, every cn_property belongs to a cn_dictionary with foreign key "dictionary_id" in table too. Since there a

[Rails] Re: AR finder with include only specific value

2009-08-09 Thread Aldo Italo
finally i solved with this: @users = User.find(:all, :include => :langs) and on wiew modified with: <%=h item.langs.find_by_langcode(I18n.default_locale.to_s).title %> <%=h item.langs.find_by_langcode(I18n.default_locale.to_s).langcode %> this solution work, i hope right also in terms of pe

[Rails] Re: why partial doesn't work ?

2009-08-09 Thread Conrad Taylor
On Sun, Aug 9, 2009 at 4:04 AM, jhaagmans wrote: > > There is no right solution by default. My way (or equivalent) is > useful when @posts is (or can be) in fact a collection of elements and > you want to do the same thing for every element. If you know for a > fact that there is only one element

[Rails] Re: AR finder with include only specific value

2009-08-09 Thread Aldo Italo
> i have tryed with : @users = User.find(:all, :include => :langs, , :conditions => ['langs.langcode = ?', "en"]) but never happen. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: xml-containing models

2009-08-09 Thread Simon Macneall
Hi, I'd be inclined to do something with an index type table, that mapped important bits of the XML into the DB. Maybe with machine_id, attribute_type, attribute_name, attribute_value as the columns. It can be a bit more work to keep it up, but you get the full flexibility of XML, but can

[Rails] Re: xml-containing models

2009-08-09 Thread jhaagmans
I'm pretty much stuck here. Is there anyone who has an idea? I can't seem to find anything about this. On 8 aug, 14:49, jhaagmans wrote: > Because the definitions of certain objects in our models are growing > out of control, we're looking into the possibility of simply defining > some of our ob

[Rails] Re: why partial doesn't work ?

2009-08-09 Thread jhaagmans
There is no right solution by default. My way (or equivalent) is useful when @posts is (or can be) in fact a collection of elements and you want to do the same thing for every element. If you know for a fact that there is only one element in the @posts object, Conrad's solution above will suffice

[Rails] AR finder with include only specific value

2009-08-09 Thread Aldo Italo
i have a model :user with an association has_many :langs. table langs have fields title and langcode. In practice every users have many langs, i retrieve specific lang with the langcode (en, de, fr, it, es, etc.) Now i want to display list users with the only default lang (en), i have used this

[Rails] Re: why partial doesn't work ?

2009-08-09 Thread Conrad Taylor
On Sun, Aug 9, 2009 at 1:39 AM, Philip Gavrilos < rails-mailing-l...@andreas-s.net> wrote: > > Eric wrote: > > On Aug 8, 4:08�pm, Philip Gavrilos > > wrote: > >> > � <% end %> > >> > >> i did not understand my error here its because im newbie in ruby ( :P ) > >> (if _preview was _post everything

[Rails] Re: why partial doesn't work ?

2009-08-09 Thread Philip Gavrilos
Eric wrote: > On Aug 8, 4:08�pm, Philip Gavrilos > wrote: >> > � <% end %> >> >> i did not understand my error here its because im newbie in ruby ( :P ) >> (if _preview was _post everything was fine.. i think that is because >> naming conventions right?) > > It worked with _post because Rails cr

[Rails] Re: RichTextEditor

2009-08-09 Thread Fernando Perez
I use TinyMCE, and like it very much. -- 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 post to this group, send email to rubyonrails-talk@goog

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-09 Thread WalT
To all the guys using Windows OS and want to use mysql as your database: I went around all the forums of ruby that I could find on the internet and I'm glad I got the answer that I was looking for: The path that I was looking for was G:\Ruby\bin. Ignore the wording 'add that path to the environm

[Rails] Re: why partial doesn't work ?

2009-08-09 Thread Eric
On Aug 8, 4:08 pm, Philip Gavrilos wrote: > jhaagmans wrote: > > In your partial, you use the variable post. But post doesn't exist. At > > least not as far as I can see. You've sent along a variable @posts and > > you will probably have to use that in some kind of for loop. > > > For example: >