[Rails] Open Source Contribution

2010-06-02 Thread Guilherme Guimarães
Hi. After some reading and coding samples i'm looking for a real ROR open- source project to contribute. Does anybody need help? Regards, Guilherme Guimarães -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Only display 5 items at a time with more button

2010-06-02 Thread Matenia Rossides
there is a function called in_groups_of .. there is a railscast episode about it. I have used a manual scrolling slider similar to what you want at the bottom of http://www.conikitv.com/ where it will grab the first hundred videos and display them in groups of 10 using the slider. Basically the

[Rails] Re: Element.insert_html is not function

2010-06-02 Thread Venu Gopal
Hi, I inserted required java script files in my html page that is new.html.erb Plaese verify the file... #Projects/new.html.erb % form_for :project, :url = projects_path do |f| % p Name: %= f.text_field :name % /p div id=tasks %= render :partial = 'task', :collection =

[Rails] Re: Is it possible to temporary cache an attribute's value in memory or do something similar?

2010-06-02 Thread Frederick Cheung
On Jun 2, 12:18 am, Matthew Hillsborough matthew.hillsboro...@gmail.com wrote: Is there anyway to work around this condition and temporarily set the in_use attribute to 1 for subsequent iterations of the loop so that I retrieve an available bar instance? Well if things do need to be atomic

Re: [Rails] Open Source Contribution

2010-06-02 Thread tramuntanal
Hi Gilherme, I'd like to improve story management of a Scrum app. Take a look at: http://sourceforge.net/projects/windsofscrum Right now I'm developing new features but story creation, assignation and repriorization is an app weak point. If you like to collaborate contact me. Regards 2010/6/2

Re: [Rails] Open Source Contribution

2010-06-02 Thread Ivan Nastyukhin
Sadly that u are use sourceforge.net, because at rails community, in the current realities, if project is no at github.com, its likely dead.) Ivan Nastyukhin dieinz...@me.com On Jun 2, 2010, at 11:41 AM, tramuntanal wrote: Hi Gilherme, I'd like to improve story management of a Scrum

Re: [Rails] Open Source Contribution

2010-06-02 Thread tramuntanal
are you from github? 2010/6/2 Ivan Nastyukhin dieinz...@me.com: Sadly that u are use sourceforge.net, because at rails community, in the current realities, if project is no at github.com, its likely dead.) Ivan Nastyukhin dieinz...@me.com On Jun 2, 2010, at 11:41 AM, tramuntanal

Re: [Rails] Open Source Contribution

2010-06-02 Thread Michael Pavling
On 2 June 2010 08:52, Ivan Nastyukhin dieinz...@me.com wrote: Sadly that u are use sourceforge.net, because at rails community, in the current realities, if project is no at github.com, its likely dead.) Dammit all my projects must be dead then :-( -- You received this message because

Re: [Rails] Re: Fixtures loading in Rails 3

2010-06-02 Thread Ramos
Anyway, is there still support for fixtures loading in rails 3? If so, how? On Fri, May 28, 2010 at 11:11 PM, Marnen Laibow-Koser li...@ruby-forum.comwrote: Ramos wrote: Hello folks, Anyone knows how can we load fixtures in Rails 3. Up to rails 2 there was a rake goal which performed

[Rails] Argument Error?

2010-06-02 Thread Pale Horse
View layer: %= thumbnail_tag (@content_page.picture1), :border = 0, :width = 489, :height = 236 % Helper layer: def thumbnail_tag(picture, options = {}) link_to(scale_image_tag(picture, options.merge({:border = 0})), /settings/view_image/#{picture.id}, :popup = [_blank,

Re: [Rails] Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 09:57, Pale Horse li...@ruby-forum.com wrote: View layer: %= thumbnail_tag (@content_page.picture1), :border = 0, :width = 489, :height = 236 % Helper layer: def thumbnail_tag(picture, options = {})  link_to(scale_image_tag(picture, options.merge({:border = 0})),

[Rails] Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: What method is it saying has too many arguments? The call to 'thumbnail_tag' or to 'scale_image_tag' or to 'link_to'? Apologies. thumbnail_tag is throwing the error. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

Re: [Rails] Re: Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 10:12, Pale Horse li...@ruby-forum.com wrote: Michael Pavling wrote:   What method is it saying has too many arguments? The call to 'thumbnail_tag' or to 'scale_image_tag' or to 'link_to'? Apologies. thumbnail_tag is throwing the error. Really? Strange. What happens if you try

[Rails] Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: Really? Strange. What happens if you try to call thumbnail_tag with no arguments? I get exactly the same error. I don't see the logic in this problem. Hence my post. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] Re: Open Source Contribution

2010-06-02 Thread cyril mougel
On Jun 2, 2:43 am, Guilherme Guimarães gguimarae...@gmail.com wrote: Hi. After some reading and coding samples i'm looking for a real ROR open- source project to contribute. Does anybody need help? There are a lot of open-source project need some help. I can say someone : Typo :

Re: [Rails] Re: Re: Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 10:22, Pale Horse li...@ruby-forum.com wrote: Michael Pavling wrote: Really? Strange. What happens if you try to call thumbnail_tag with no arguments? I get exactly the same error. I don't see the logic in this problem. Hence my post. Can you post a few extra lines from the

[Rails] Re: Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: On 2 June 2010 10:22, Pale Horse li...@ruby-forum.com wrote: Michael Pavling wrote: Really? Strange. What happens if you try to call thumbnail_tag with no arguments? I get exactly the same error. I don't see the logic in this problem. Hence my post. Can you post a

Re: [Rails] Re: Re: Re: Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 10:32, Pale Horse li...@ruby-forum.com wrote: Case 1 (with arguments): Case 2 (without arguments): No, sorry; I meant the stack trace message that tells you which lines of which files were executing. If it's easier, maybe just past the whole message into a pastebin service

[Rails] Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: No, sorry; I meant the stack trace message that tells you which lines of which files were executing. If it's easier, maybe just past the whole message into a pastebin service (http://gist.github.com/ or http://pastebin.com/ etc) Apologies - here are the full stack

Re: [Rails] Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 10:49, Pale Horse li...@ruby-forum.com wrote: Michael Pavling wrote: No, sorry; I meant the stack trace message that tells you which lines of which files were executing. If it's easier, maybe just past the whole message into a pastebin service (http://gist.github.com/ or

[Rails] Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
To add to that, here is the scale_image_tag helper method: def scale_image_tag(picture, options = {}) if picture #raise options.to_yaml image_tag(picture.url(options[:width], options[:height]), options.merge({:alt = picture.image_alt, :title = picture.image_alt})) else

[Rails] Error on rake command

2010-06-02 Thread Ziburu Debian
Hi, Have you an idea about this error message when i run the rake db:migrate command under Aptana ? rake aborted! NoMethodError: undefined method `ord' for 0:Fixnum: SET SQL_AUTO_IS_NULL=0 Thanks Here My Config : Windows XP PRO SP2 Wamp 2.0 Aptana 2.0.4 RubyGems 1.3.5 Ruby 1.8.6 -- Posted

[Rails] Re: How would I create a tagged domain?

2010-06-02 Thread Joe
Bump (last time)!! Can no one help me with this? I really can't figure it out.. Please Help, Thanks In Advance, Joe On 31 May, 17:39, Joe j...@dev-hq.co.uk wrote: Bump?! Please, can anyone help? On 30 May, 09:16, Joe j...@dev-hq.co.uk wrote: Hi, Basically I recently been playing

[Rails] Re: Error on rake command

2010-06-02 Thread Priya Buvan
can you please provide us the migration file? -- 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread TINODEV
Many thanks for the answers :) @ Marnen - Appreciate your advice and recommendations as for JavaScript.. I assume you mean JavaScript / Ajax? Anyway, I'll look into it in more depth... @john - thanks:) looked into the links you gave me.. I was reading a bit before sending my question.. saw

[Rails] Re: Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: Pastebin! Save the list's bandwith and our eyes! ;-) Anyway; they're both complaining about 'scale_image_tag'... app/helpers/application_helper.rb:44:in `scale_image_tag' I'd stick some breakpoints on there, and see what's happening. Solved. Thanks for your

[Rails] Re: Authorize AASM state transitions with Declaraive_Authorization ?

2010-06-02 Thread H.J. Blok
I can share my solution, maybe you can find the corresponding methods for AASM... For example when you have an Article, you define a before_transition within the state definition. The before_transition uses the method is_authorized_for? to determine if the user is authorized for the

[Rails] mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
HI, I have MAC operating system which is 32 bit. I am facing a problem while installing the mysql driver. I have installed mysql gem with following command:- sudo env ARCHFLAGS=-arch i386 gem install mysql -v=2.7 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config It has installed the gem

[Rails] Ajax with JQuery

2010-06-02 Thread Manivannanj Jeganathan
I have used Ajax link and live validation in index.rhtml Ajax link requires JavaScript prototype and live validation requires jquery. i got element.dispatchEvent is not a function on the firebug console when i used prototype and jquery in same page index.rhtml after i removed javascript prototype

Re: [Rails] Re: Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Michael Pavling
On 2 June 2010 12:29, Pale Horse li...@ruby-forum.com wrote: I'd stick some breakpoints on there, and see what's happening. Solved. Thanks for your advice. Do you fancy letting the list know what the solution was? ... it may help someone else in future. -- You received this message because

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Marnen Laibow-Koser
[Please quote when replying -- it makes the thread easier to follow.] TINODEV wrote: Many thanks for the answers :) @ Marnen - Appreciate your advice and recommendations as for JavaScript.. I assume you mean JavaScript / Ajax? I meant what I said. Use Ajax or not as your application

[Rails] Re: Re: Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Pale Horse
Michael Pavling wrote: Do you fancy letting the list know what the solution was? ... it may help someone else in future. Erroneous: def scale_image_tag(picture, options = {}) if picture #raise options.to_yaml image_tag(picture.url(options[:width], options[:height]),

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Frederick Cheung
On Jun 2, 12:55 pm, Tushar Gandhi li...@ruby-forum.com wrote: HI, I have MAC operating system which is 32 bit. I am facing a problem while installing the mysql driver. I have installed mysql gem with following command:- sudo env ARCHFLAGS=-arch i386 gem install mysql -v=2.7   --

[Rails] Re: Re: Re: Re: Re: Argument Error?

2010-06-02 Thread Marnen Laibow-Koser
Michael Pavling wrote: On 2 June 2010 10:49, Pale Horse li...@ruby-forum.com wrote: Michael Pavling wrote: No, sorry; I meant the stack trace message that tells you which lines of which files were executing. If it's easier, maybe just past the whole message into a pastebin service

[Rails] Re: Error on rake command

2010-06-02 Thread Ziburu Debian
Priya Buvan wrote: can you please provide us the migration file? what is the migration file ? see the database.yml file here : _ # MySQL. Versions 4.1 and 5.0 are recommended. # # Install the MySQL driver: # gem install mysql # On Mac OS X: # sudo gem install

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, I have MAC OS version 10.6.2. Frederick Cheung wrote: On Jun 2, 12:55�pm, Tushar Gandhi li...@ruby-forum.com wrote: HI, I have MAC operating system which is 32 bit. I am facing a problem while installing the mysql driver. I have installed mysql gem with following command:- sudo env

[Rails] Active Record Associations and papermill

2010-06-02 Thread DmitryPush
I have a model Chapter I figured out how to add assets to chapter through papermill plugin. Now the question: how can i add additional description to each asset? It can look like: chapter has_many items item belongs_to chapter item has_one papermill_asset papermill_asset belongs_to item But i

[Rails] Re: Authorize AASM state transitions with Declaraive_Author

2010-06-02 Thread Marnen Laibow-Koser
TINODEV wrote: Hey, First of all - @Brian - I apologise for double sending this to you.. since can only reply to author, now Cc-ing the group email as well.. Ok, question as follows: I'm using Restful_Authentication plugin (generated authenticated user sessions with --include-activation

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Marnen Laibow-Koser
Tushar Gandhi wrote: Hi, I have MAC OS version 10.6.2. Isn't that 64-bit? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, No it's 32-bit OS -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Ajax with JQuery

2010-06-02 Thread hoenth
Try using the noConflict setting script type=text/javascript //define function to be executed on document ready var $j = jQuery.noConflict(); $j(function(){ $j(#user_name).validate({ expression: if (VAL) return true; else return false;, message: Please enter the Password });

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Frederick Cheung
On Jun 2, 2:04 pm, Tushar Gandhi li...@ruby-forum.com wrote: Hi, No it's 32-bit OS 10.6.x has (by default on most machines) a 32bit kernel, but apps can be 64bit. In particular the ruby runtime is 64/32bit universal and so will default to 64bit. (you should make sure you have the 64bit

[Rails] Session, memory_store NoMethodError

2010-06-02 Thread Chdem Chdem
Hy everybody, first, excuse me for my english, I'm french (sorry for that :D). My actual problem is that I encountered a [b]NoMethodError[/b] when I tried to access to a session value that is not nil. I'm doing some ajax calls and I afffect the key/value and access to session variable in the

[Rails] Validating form that is not bounded to Model

2010-06-02 Thread Joshua Partogi
Hi all, I would like to validate a form, but this form is not bounded to a Model? What would be the best approach to do this in Rails? I tried to look in the Rails guide with no luck. Can anybody share their experience please? Thank you very much in advance. Kind regards, Joshua --

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Robert Walker
Marnen Laibow-Koser wrote: TINODEV wrote: Hello, I'm a Ruby on Rails beginner, as well as Flash beginner.. Recently started developing a Web application using Ruby on Rails (I'm using InstantRails on Windows..).. Few days ago the Application's design was changed and now the requirement is

[Rails] Re: sqlite3.dll problem

2010-06-02 Thread Will Kriski
Just curious why it wouldn't be installed when you type gem install... and maybe helping to post where to get it since it doesn't come with the install Harry Seldon wrote: @Phillip Gawlowski Personnally, it did not work to put sqlite3.dll in

[Rails] Re: sqlite3.dll problem

2010-06-02 Thread Will Kriski
this link doesn't work Carlos Aguayo wrote: http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite On Apr 12, 8:10 pm, Phillip Gawlowski cmdjackr...@googlemail.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Authentication, state machine plugins with Declaraive_Authorization

2010-06-02 Thread TINODEV
Ok.. @ Marnen - At the time when looking through Authentication Plugins didn't get the impression most developers rather use different plugins (other thena Restful_Auth) nowadays.. on the other hand - I didn't quite ask and tried to figure it all by myself while feeling a newbie (till two days

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread TINODEV
wrote below :) On Jun 2, 3:20 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: [Please quote when replying -- it makes the thread easier to follow.] TINODEV wrote: Many thanks for the answers :) @ Marnen - Appreciate your advice and recommendations as for JavaScript.. I assume you

[Rails] Has many_through, how to show only unassociated fields for a category?

2010-06-02 Thread Samuel
Hi everybody, I'm using ruby 1.9.1, with rails 2.3.*. I have an application of products and categories, but I want each type of product to have specific attributes. So, basically, according to the chosen category, I want different fields to be shown for the user. So, before actually making the

[Rails] Re: Session, memory_store NoMethodError

2010-06-02 Thread Frederick Cheung
On Jun 2, 2:54 pm, Chdem Chdem li...@ruby-forum.com wrote: [code]def analysis_repository       .       session[:list_xml] = create_XML_file_obj(false)#put an array of XmlFile objects in the session Is this actually an array or an association proxy that looks like an array ? Fred -- You

[Rails] Re: One account several users with different privileges

2010-06-02 Thread Carlos A. Cabrera
I'm working on something similar right now. I created a very simple login/authentication method and now I'm dealing with users privileges in the site. In my case I have posts that belongs to companies so only users from the post's company can view them. Also each user has roles (Admin) to edit,

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread John Ivanoff
Some of are required to work on windows at work. I do have a production Rails app running on a windows box. it's internal and doesn't have a high hit rate so I'm ok with it. The box also runs ASP classic on it, so it's running IIS and Apache. I like pain. At home I use a Mac and prefer it. I'm

[Rails] :joins VS :include = different results?

2010-06-02 Thread Tom Ha
Hi there, assume that: 1 we have the following situation: Book :has_many Pages :has_many Illustrations = = 2 certain pages have NO illustrations 3 the following 2 cases: A) Book.find(:all, :joins = [:pages = [:illustrations]])

[Rails] Multiple threads writing to the same Starling queue doesn't work?

2010-06-02 Thread PierreW
Hi guys, I can't find a clear answer to this: is it possible/correct to have several threads write to the same Starling queue at the same time? It doesn't seem reliable according to my tests - but maybe I am doing something wrong. If I do: def test_starling FooWorker.asynch_foo_test(:my_id

[Rails] Re: :joins VS :include = different results?

2010-06-02 Thread Frederick Cheung
On Jun 2, 5:09 pm, Tom Ha li...@ruby-forum.com wrote: Question: Is it correct that: - in case A), the books containing pages WITHOUT any illustrations will NOT show up in the results - whereas in case B), these books WILL show up? (Personally, I thought that the main difference between

[Rails] Re: Session, memory_store NoMethodError

2010-06-02 Thread Chdem Chdem
This is an array of objects, complete like this : *** my_fileXml_array = Array.new myFileXml = FileXml.new myFileXml.name = TEST myFileXml.description = TEST my_fileXml_array myFileXml *** But if the datatype was a problem, I

[Rails] Re: Session, memory_store NoMethodError

2010-06-02 Thread Frederick Cheung
On Jun 2, 6:46 pm, Chdem Chdem li...@ruby-forum.com wrote: I only have the NoMethodError when accessing to the session key/value in an another function than the one where affectation was made, but in the same controler. Is it an envidence ? If the problem only appears when accessing stuff

[Rails] Re: Combining Two Models into one form

2010-06-02 Thread Matias N.
Awesome! Thank You! :) -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Chris Sass
I had a really hard time getting the mysql gem to run on snow leopard for me. Try uninstalling mysql and reinstalling it with macports. Here is a post I made about how I got it to run on my machine. http://lupinedev.com/2010/5/24/installing-mysql-gem-on-snow-leopard Hope this helps... --

[Rails] Routes?

2010-06-02 Thread anon_comp
The images in my program aren't appearing. They're all housed in public/images so I was hoping that I could modify routes.rb to point the program in the right direciton. The page that has the images has the typical image html code: img src=images/barb1.png Now I know that if I add a '/' in

[Rails] Re: Session, memory_store NoMethodError

2010-06-02 Thread Chdem Chdem
Ok, thanks a lot ! But, these objects are not already saved in the database, so I can not save the ids ! I have to check a lot of things before doing that.a solution could be to use transactions. How can I rollback after have saved objects ? One more time, thank you Frederick !

[Rails] Re: Only display 5 items at a time with more button

2010-06-02 Thread Robert Walker
Matenia Rossides wrote: there is a function called in_groups_of .. there is a railscast episode about it. I have used a manual scrolling slider similar to what you want at the bottom of http://www.conikitv.com/ where it will grab the first hundred videos and display them in groups of 10 using

[Rails] Re: Using update_attributes(params[:something]) w/ manual assignment

2010-06-02 Thread Jose Ambros-ingerson
Perry Smith wrote: So I guess this rules out all but a some plugin interference; I'll look into it; I finally was able to figure out what was going on. It was interference from the be9-acl9 gem which is based on acl9 with some SQL query generation improvements (as of v 0.11) The

[Rails] Re: reloading page with errors

2010-06-02 Thread Robert Walker
Mlle wrote: I use javascript to insert a nested model form into a page. If I use validation on the data entered and it reloads the page with an error displayed, the nested model form is gone because it's not part of the original template. Is there any way I can change it? If you need it

[Rails] Re: :joins VS :include = different results?

2010-06-02 Thread Tom Ha
:joins does an inner join, :include doesn't (and may not even do a join at all) If you say may not, when would it do or not do a join, then? And which type of join? Doesn't :include amount to a LEFT JOIN, actually? -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: :joins VS :include = different results?

2010-06-02 Thread chris
IME :include does a join if you are using the 'included' table in the query conditions: A.find(:all, :conditions = 'a.column=1', :include = 'b') # no join A.find(:all, :conditions = 'a.column=1 AND b.column=2', :include = 'b') # join On Jun 2, 3:14 pm, Tom Ha li...@ruby-forum.com wrote: :joins

[Rails] how to pass a form DOM ID to submit_to_remote, just like with observe_form?

2010-06-02 Thread Lille
Hi, I'd like to use submit_to_remote just like observe_form: I want to supply a DOM ID to submit_to_remote. I've searched around, but I do not see any way to do this. It seems odd that I shouldn't be able to use a form DOM ID in something like submit_to_remote. Any thoughts? (I'm doing this

[Rails] Re: how to pass a form DOM ID to submit_to_remote, just like with observe_form?

2010-06-02 Thread Lille
Got it. This can be accomplished by the :submit option described in the following doc: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M002174 Lille On Jun 2, 3:35 pm, Lille lille.pengu...@gmail.com wrote: Hi, I'd like to use submit_to_remote just like

[Rails] Re: Routes?

2010-06-02 Thread anon_comp
On Jun 2, 2:31 pm, anon_comp neocools...@gmail.com wrote: The images in my program aren't appearing. They're all housed in public/images so I was hoping that I could modify routes.rb to point the program in the right direciton. The page that has the images has the typical image html code:

[Rails] Re: :joins VS :include = different results?

2010-06-02 Thread Tom Ha
A.find(:all, :conditions = 'a.column=1 AND b.column=2', :include = 'b') # join And if you say join, you mean a LEFT join here, if I got the story right... Thanks, guys! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Marnen Laibow-Koser
Robert Walker wrote: [...] Haven't you heard? Flash has passed it's prime, and is dying a slow and painful death. I hope that's not true. Flash is a great tool for sites that require it (see http://www.openstreetmap.org for an example of Flash used appropriately -- with Rails, as it

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Marnen Laibow-Koser
TINODEV wrote: [...] Also, now, having JavaScript in mind and my view requirements, maybe Rails 3 can actually make things easier/smoother for me? Well, Rails 2's JavaScript helpers should be entirely avoided, because they mix JavaScript into your HTML, which is bad coding practice

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Robert Walker
Marnen Laibow-Koser wrote: A couple of examples: http://cappuccino.org/ # My personal favorite Really? I've heard bad things about it. You forget, I also hack around at Objective C/Cocoa code, so I find Objective-J fascinating and very cool. I'm not at all surprised you've heard bad

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread paul h
Hi tino, I use Flex (don't like the Flash IDE - especially that stinking Timeline ) with Rails all the time - no problems. Being on Windows, I use InstantRails, and Aptana Studio as an editor, although I do as much as I can now via the command line. I looked into Aptana due to it being built on

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-02 Thread Marnen Laibow-Koser
paul h wrote: Hi tino, I use Flex (don't like the Flash IDE - especially that stinking Timeline ) with Rails all the time - no problems. Being on Windows, I use InstantRails, and Aptana Studio as an editor, although I do as much as I can now via the command line. I looked into Aptana due to

[Rails] problem with database still sqlite3 and i want mysql

2010-06-02 Thread Gerő Zoltán
Hi all, I am a beginner developer on Rails. Unfortunately I have problems with the database connection for a week! I read many articles, but still not work properly. The problem: If I start a new Rails app, and I type: rails app_name -d database - it still make me an adapter with sqlite3. I use

[Rails] user routing versus admin routing strategies?

2010-06-02 Thread Fearless Fool
In an app where ordinary users are limited to viewing and editing their own stuff, but someone with admin privs can view and edit anybody's stuff, what's the right strategy for routing? At first blush, I'd think that an ordinary user (e.g. with id 565) should see something like:

[Rails] Re: Open Source Contribution

2010-06-02 Thread Guilherme Guimarães
Thank you Oliver and Cyril for the suggestions. I will check it out and decide from where to start. Regards, Guilherme Guimarães On Jun 2, 6:25 am, cyril mougel cyril.mou...@gmail.com wrote: On Jun 2, 2:43 am, Guilherme Guimarães gguimarae...@gmail.com wrote: Hi. After some reading

Re: [Rails] Re: Open Source Contribution

2010-06-02 Thread Patrick Aljord
+1 for shapado, if you need help you can talk to us on #shapado in freenode Thanks Cyril ;) 2010/6/2 Guilherme Guimarães gguimarae...@gmail.com: Thank you Oliver and Cyril for the suggestions. I will check it out and decide from where to start. Regards,    Guilherme Guimarães On Jun 2,

Re: [Rails] problem with database still sqlite3 and i want mysql

2010-06-02 Thread Philip Hallstrom
On Jun 2, 2010, at 1:39 PM, Gerő Zoltán wrote: Hi all, I am a beginner developer on Rails. Unfortunately I have problems with the database connection for a week! I read many articles, but still not work properly. The problem: If I start a new Rails app, and I type: rails app_name -d

[Rails] Re: One account several users with different privileges

2010-06-02 Thread Cristian Dlucca
Carlos Cabrera wrote: I'm working on something similar right now. I created a very simple login/authentication method and now I'm dealing with users privileges in the site. In my case I have posts that belongs to companies so only users from the post's company can view them. Also each user

[Rails] Re: One account several users with different privileges

2010-06-02 Thread chewmanfoo
We had a similar problem - we did it this way: set a global string ADMINCODE = somethingImpossibleToGuess and include a text field for this in the signup form. If the user can enter an admin code, then they get to be admin. On Jun 2, 6:39 pm, Cristian Dlucca li...@ruby-forum.com wrote: Carlos

[Rails] creating fixtures for has_many :through

2010-06-02 Thread Fearless Fool
I'm stymied at how to create a fixture that establishes a has_many :through relationship. I've watched the railscast at: http://media.railscasts.com/videos/081_fixtures_in_rails_2.mov ... but that's for HABTM relationships. I've read: http://www.ruby-forum.com/topic/145676 but that

[Rails] Re: user routing versus admin routing strategies?

2010-06-02 Thread Chris Sass
Check out acl9 for access control http://github.com/be9/acl9 With acl9 you control what users have access to which specific methods and assign users roles on specific objects. You could set it up in the create method of stuffs_controller so the current_user is the owner of that stuff and

[Rails] Re: creating fixtures for has_many :through

2010-06-02 Thread Fearless Fool
UPDATE! In a fit of gentle snarkiness, Fearless Fool wrote: Before Marnen tells me to put aside my Luddite tendencies and that I should learn factory_girl or Machinist or the next testing framework du jour, is there any sensible way to do this using fixtures? The more I've looked into it, the

[Rails] Re: user routing versus admin routing strategies?

2010-06-02 Thread Dee
I'm using Cancan, which works really well and is pretty cleanly implemented. Check out Ryan Bates Railscast here http://railscasts.com/episodes/192-authorization-with-cancan. The urls you have up there end in .html, which doesn't really happen all that often in rails. With routes, what you're

[Rails] Re: user routing versus admin routing strategies?

2010-06-02 Thread Fearless Fool
@Dee: Yes, you're answering the right question. My addition of the .html suffixes (suffixen?) was a brain bubble and should be ignored. I wonder if exposing the user id in the url is useful or prudent. I agree with most RESTful philosophy, but even if authorization code is in place to

[Rails] Re: creating fixtures for has_many :through

2010-06-02 Thread Marnen Laibow-Koser
Fearless Fool wrote: UPDATE! In a fit of gentle snarkiness, Fearless Fool wrote: Before Marnen tells me to put aside my Luddite tendencies and that I should learn factory_girl or Machinist or the next testing framework du jour, is there any sensible way to do this using fixtures? The

[Rails] iterate binary string and sqlite3 query

2010-06-02 Thread Japmsn Japms
Hi guys, my problem is the following, Right now I have a list of japanese words that are loaded from the database, they display okay, the problem begins when I need to split that word into 'characters' in this case 'kanjis' so I can make a link for each kanji,for example:

[Rails] Re: iterate binary string and sqlite3 query

2010-06-02 Thread Japmsn Japms
okay lol forget about the nil problem I mentioned at the end, that was because out of the huge list of words there were a few that started with a symbol other than a kanji so just doing: k.id unless k.nil? did the trick so I'm going to change my question to... is there another(simpler) way to

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, How can I found that my ruby application is 32 bit or 64 bit? My ruby version is as follows:- ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Routes?

2010-06-02 Thread Arun Srini
Can you share how you solved it? Am facing a similar situation. On Jun 3, 1:11 am, anon_comp neocools...@gmail.com wrote: On Jun 2, 2:31 pm, anon_comp neocools...@gmail.com wrote: The images in my program aren't appearing. They're all housed in public/images so I was hoping that I could

[Rails] Re: SMTP Configuration in Rails 2.3.4

2010-06-02 Thread CSK Vasanth
Can anyone help me on this? -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Thanks Guys, I have solved the error by installing the mysql 64 bit version and installing the gem. Thanks for your suggestions. -- 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