[Rails] Re: error while installing ruby with rvm on snowleopard

2011-07-28 Thread Aashish Kiran
7stud -- wrote in post #1013293: Don't ever post errors without the command that generated the errors. The below is the command i typed. Can you help.. Thu Jul 28 11:37:32 $ rvm install 1.8.7 Installing Ruby from source to: /Users/prem/.rvm/rubies/ruby-1.8.7-p352, this may take a

[Rails] Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?

2011-07-28 Thread Phoenix Rising
Hey guys, I'm taking the plunge and building a new app on Rails 3.1 (asset pipelining ROCKS) and using MongoDB as the backend. Does anyone know of any good fixtures replacements that work with MongoDB and Rails 3.1? I could really use some advice there. Also, a follow-up question: the two ODMs

[Rails] Re: error while installing ruby with rvm on snowleopard

2011-07-28 Thread Aashish Kiran
Dan Sadaka wrote in post #1013346: Sounds like DNS issue or the host is down. Can you ping production.cf.rubygems.org? -D I did 'dig production.cf.rubygems.org' got error as could not find host. I again did 'dig http://production.cf.rubygems.org' got a success. But I dont get how to solve

[Rails] it doesn't work jquery

2011-07-28 Thread 原田伸也
Hi all! I want to add alert message via jquery when User clicks div id=starstar/div. But, It can't work. Please teach me some advice. Thanks! # posts/index.html.erb [code] ... % @posts.each do |post| % tr td%= post.id %/td td%= post.content %/td td/td div id=like

[Rails] Question regarding associations..

2011-07-28 Thread Rick Nellie Flower
Ok.. So I've got my initial table structures setup and I was hoping I could have associations help me out with something akin to embedded/nested objects but without the direct nesting (unless there's another way to achieve that goal).. So, I've got an Address class that looks like the

Re: [Rails] Question regarding associations..

2011-07-28 Thread Chris Kottom
You don't have a FK for user_id in your ADDRESSES table for starters, and you didn't include your model files, so there's no way of knowing whether you've defined the relationships there. See: http://guides.rubyonrails.org/migrations.html http://guides.rubyonrails.org/association_basics.html On

[Rails] Re: it doesn't work jquery

2011-07-28 Thread Kleber Shimabuku
Hi, Show us the error you are getting on that. Also, check your html code generated to see if the javascript libraries are loading correctly, in this case, the jquery library. If you are not on rails 3.1 you are probably loading the prototype files instead the jquery as needed. On Jul 28,

Re: [Rails] rails 3 routing error

2011-07-28 Thread Colin Law
On 28 July 2011 04:28, 7stud -- li...@ruby-forum.com wrote: [...]  resources :sessions, :only = [:new, :create, :destory] Nothing to do with the problem, but that should be destroy, not destory Colin -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Question regarding associations..

2011-07-28 Thread Colin Law
On 28 July 2011 07:53, Rick Nellie Flower n...@ca-flower.com wrote: Ok.. So I've got my initial table structures setup and I was hoping I could have associations help me out with something akin to embedded/nested objects but without the direct nesting (unless there's another way to achieve

[Rails] Error while starting Rails. Please help.

2011-07-28 Thread Amit Bobade
*Dear all:* I am trying to start rails but it is not getting started. It is giving following error: -[31mCould not find gem 'mysql112 (~ 0.2.6)' in any of the gem sources listed in your Gemfile. -[0m I used following commands for app: *rails new myapp -d mysql *after successfully executing

Re: [Rails] Re: Problem with starting Rails. Please help.

2011-07-28 Thread Amit Bobade
Hi Chirag, I am still getting error while starting the rails. -[31mCould not find gem 'mysql112 (~ 0.2.6)' in any of the gem sources listed in your Gemfile. -[0m Please help on this, I found the gem file and added *gem 'mysql' *in to it but it still shows error. please help on this. Thanks,

[Rails] Getting error while using paperclip gem..

2011-07-28 Thread Dhaval Mehta
I m getting error while using paperclip gem: Template is missing Missing template uploads/show with {:handlers=[:erb, :rjs, :builder, :rhtml, :rxml], :formats=[:html], :locale=[:en, :en]} in view paths C:/Users/trainee5/uploaders/app/views can any one help me.. Thanks.. -- You received

[Rails] Re: Getting error while using paperclip gem..

2011-07-28 Thread Chirag Shah
Please mentioned more details that what you trying to do with the paper clip gem By this error, only things come that you have not show.erb in your views Or you have to specify any render or redirect in the show method - Chirag Shah -- Posted via http://www.ruby-forum.com/. -- You received

Re: [Rails] Error while starting Rails. Please help.

2011-07-28 Thread Manivannan Sivaprakasam
Hi amit, Please tell me the gem you gave for mysql in Gemfile. (any versions?) On Thu, Jul 28, 2011 at 2:48 PM, Amit Bobade amit.sr...@gmail.com wrote: *Dear all:* I am trying to start rails but it is not getting started. It is giving following error: -[31mCould not find gem

[Rails] starter question about paperclip / relations in rails 3

2011-07-28 Thread Daniel Amsterdam
Hello, i'm trying out Rails 3 and i've created a little app with paperclip. My problem is that i cant get the assets for a user in the index action but in the edit action it works. i have the flowing set up class User has_many :assets class Asset belongs_to :user has_attached_file

Re: [Rails] Re: Problem with starting Rails. Please help.

2011-07-28 Thread Chirag Singhal
looks like you have wrong entry in your Gemfile. Can you attach or paste contents of your Gemfile? Chirag http://sumeruonrails.com On Thu, Jul 28, 2011 at 2:53 PM, Amit Bobade amit.sr...@gmail.com wrote: Hi Chirag, I am still getting error while starting the rails. -[31mCould not find

Re: [Rails] Re: Problem with starting Rails. Please help.

2011-07-28 Thread Amit Bobade
Hi, Gem file is as follows: source 'http://rubygems.org' gem 'rails', '3.0.9' # Bundle edge Rails instead: # gem 'rails', :git = 'git://github.com/rails/rails.git' gem 'mysql2', '~ 0.2.6' # Use unicorn as the web server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use

Re: [Rails] Re: Problem with starting Rails. Please help.

2011-07-28 Thread Chirag Singhal
mysql2 won't install on windows, use mysql gem instead. So, change this line gem 'mysql2', '~ 0.2.6' to gem 'mysql' and in your config/database.yml file, change the adapter from *mysql2* to * mysql* for all 3 databases. Chirag http://sumeruonrails.com On Thu, Jul 28, 2011 at 4:14 PM, Amit

Re: [Rails] Re: Problem with starting Rails. Please help.

2011-07-28 Thread Amit Bobade
Hi Chirag, It worked Thank you very very much. :) Thanks, -Amit. On Thu, Jul 28, 2011 at 4:19 PM, Chirag Singhal chirag.sing...@gmail.comwrote: mysql2 won't install on windows, use mysql gem instead. So, change this line gem 'mysql2', '~ 0.2.6' to gem 'mysql' and in your

Re: [Rails] Error while starting Rails. Please help.

2011-07-28 Thread Amit Bobade
Hi Manivannan, Thanks for your reply. I was using mysql2 and now I changed it to mysql. Now there is no error, everything is working fine. I am new to ruby, hoping for you help in future. Thanks, -Amit On Thu, Jul 28, 2011 at 3:58 PM, Manivannan Sivaprakasam manisiv...@gmail.com wrote: Hi

[Rails] Problem redirecting from a js call

2011-07-28 Thread A . Fernández
Hi all, I have a form that uses ajax to add a product to a cart. After all verifications it must redirect to the product page again. When I call the js, it makes all the verifications, if one fails, it renders them in a specific div with the explanation, but if there are no errors, it must

Re: [Rails] Migration to rails2 rails3

2011-07-28 Thread Rodrigo Martins
Chirag, Thank you, Differences between the Rakefile to rails2 rails3. Rails2 the Rakefile: require(File.join(File.dirname(__FILE__), 'config', 'boot')) require '...' Rails3 the Rakefile: require File.expand_path('../config/application', __FILE__) NameApplication::Application.load_tasks brother

[Rails] How to move html element?

2011-07-28 Thread Rodrigo Ruiz
Does anyone knows how to make an image, or anything that I draw on my page, to move by dragging with mouse? Is there a rails way to do it? if not, is there any way to do this? Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Gem problems

2011-07-28 Thread Rob Biedenharn
On Jul 28, 2011, at 1:13 AM, Chirag Shah wrote: Have you installed both nokogiri versions to your machine ? Brian Jakovich wrote in post #1013456: Trying to use cabybara and aws's ruby gem and I'm getting this error: *Bundler could not find compatible versions for gem nokogiri: In Gemfile:

Re: [Rails] Migration to rails2 rails3

2011-07-28 Thread Chirag Singhal
Great, copy over the changes and post again if you get stuck anywhere else. Chirag http://sumeruonrails.com On Thu, Jul 28, 2011 at 5:39 PM, Rodrigo Martins rodr...@rrmartins.comwrote: Chirag, Thank you, Differences between the Rakefile to rails2 rails3. Rails2 the Rakefile:

Re: [Rails] How to move html element?

2011-07-28 Thread Walter Lee Davis
Have a look at the Scriptaculous Draggable library. http://script.aculo.us This is built in to Rails 3.1. I'm sure there's similar in jQuery for Rails = 3.1. Walter On Jul 28, 2011, at 8:31 AM, Rodrigo Ruiz wrote: Does anyone knows how to make an image, or anything that I draw on my

[Rails] Re: Rails 3.1 Engines: Full vs. Mountable

2011-07-28 Thread astjohn
I take it no one has poked around with the Rails 3.1 engines yet? -Adam On Jul 25, 3:27 pm, astjohn astj...@gmail.com wrote: Hi all, I was hoping someone could please clarify the differences between a full engine and a mountable one. I have noticed the following: ** Full Engine ** -

[Rails] Re: Gem problems

2011-07-28 Thread Frederick Cheung
On Jul 28, 1:32 pm, Rob Biedenharn r...@agileconsultingllc.com wrot On Jul 28, 2011, at 1:13 AM, Chirag Shah wrote: Is there any way around this? Has anyone else had this problem No. ~ 1.4.4 means:  = 1.4.4 and 1.5 1.5.0 means:     = 1.5.0 So there's no way to have a single version of

[Rails] Re: autocomplete depending on input of another field

2011-07-28 Thread Angelo Cordova
Thanks for your answer do you have any link to a site with examples or something like that I really don't know much about ajax On Jul 28, 1:20 am, Chirag Shah li...@ruby-forum.com wrote: You can call ajax request on change or on lost focus of the code field For send ajax request you can do

Re: [Rails] Question regarding associations..

2011-07-28 Thread Rick Nellie Flower
Thanks guys! I'll play with this some more when I come home this evening.. One more question if I could.. If I get the plumbing all plugged in as needed, do I ned to do anything in particular with the view for the address object to get it to show up when adding or editing a user record or

[Rails] Re: Question regarding associations..

2011-07-28 Thread Frederick Cheung
On Jul 28, 2:53 pm, Rick Nellie Flower n...@ca-flower.com wrote: Thanks guys!  I'll play with this some more when I come home this evening.. One more question if I could.. If I get the plumbing all plugged in as needed, do I ned to do anything in particular with the view for the address

[Rails] Re: Deploying RoR apps from different branches

2011-07-28 Thread BirdieTracker
I'm stuck with SVN (enterprise requirement) but not stuck with Vlad. I'll check out Cap and see if that makes my like easier. Thanks for the feedback everyone. On Jul 27, 8:46 am, dsadaka d...@web-site1.com wrote: I use capistrano and I don't have to worry about any of that. Sure it copies

[Rails] Re: rails mailer and attachments

2011-07-28 Thread Damien Knight
so you think, i have to set the mime-type of each attachment manually/explicitly? -- 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

Re: [Rails] Re: Rails 3.1 Engines: Full vs. Mountable

2011-07-28 Thread Paul
I'm interested in this, too, but I haven't used 3.1 yet. Let us know what you find out! On Thu, Jul 28, 2011 at 9:11 AM, astjohn astj...@gmail.com wrote: I take it no one has poked around with the Rails 3.1 engines yet? -- You received this message because you are subscribed to the Google

[Rails] Re: Problem redirecting from a js call

2011-07-28 Thread A . Fernández
Found how to do it. window.location.replace( url-to-go ); in the template. Was looking to do this inside the controller but this works too. Thanks! On 28 jul, 11:30, A. Fernández antoniofernandezv...@gmail.com wrote: Hi all, I have a form that uses ajax to add a product to a cart. After all

[Rails] Trouble connecting to JDE Database using Watir in Ruby

2011-07-28 Thread Stephen Beckman
Hello folks, I have been testing out Watir developed on the Ruby platform to make some automated tests for JD Edwards on E1(Enterprise software suite). We are using SQL Server and I am having trouble connecting to the database here using ActiveRecord (based off of Rails). So far I have the script

[Rails] Looking for a fellow human: Agile, Mobile, Web, Rails Developer

2011-07-28 Thread zdennis
Not to spam the list, but I thought the Rails community may be appropriate to tap into. We're looking for agilist web/mobile developer(s) over at Mutually Human: http://mutuallyhuman.com/blog/2011/07/28/looking-for-a-fellow-human-agile-mobile-web-rails-developer If you or anyone you know may be

Re: [Rails] starter question about paperclip / relations in rails 3

2011-07-28 Thread Alejandro Cadavid
Hey When you do (user.assets.each do |assetfield|) you are getting each Asset object associated to user in the assetfield variable, but still you need to access the attachment property which is 'asset'. So basically you just need to change assetfield.url(:thumb) for assetfield.asset.url(:thumb)

[Rails] Re: Active Record track changes with update_attributes

2011-07-28 Thread Owain
You could do order.attributes = params[:order], inspect the changes and then save the object. Fred @fred that worked perfectly. -- 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

[Rails] Actionmailer Help Needed

2011-07-28 Thread Jenny Blunt
Hello everyone, Nice to meet you all, am new to the forum. I'm stuck with rake / actionmailer trying to display a set of found records. We have a simple actionmailer rake task that is supposed to send a daily email digest of tasks that are due for a specific user. So far, it's working but the

[Rails] [JSon] Rendering a json view and HTML characters

2011-07-28 Thread Michael José
Hi there fellows ! I'm currently working on a JSon view and had to make my own view (for simple ActiveSupport::JSON can't do the trick anymore). The thing is, after my controller does this : respond_to format.html format.json end It does use the correct view in the correct context. Yet,

[Rails] Help install jquery ui

2011-07-28 Thread Rodrigo Ruiz
I tryed rails generate jquery:install --ui but my draggable method still does nothing. Can anyone help me ? What is the proper way to install jquery ui (specially for dragging elements)? Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Rails, jquery and Ajax

2011-07-28 Thread wilson
Railscasts has some examples: http://railscasts.com/episodes/43-ajax-with-rjs http://railscasts.com/episodes/136-jquery On 27 jul, 08:45, Paul Bergstrom li...@ruby-forum.com wrote: How do I make an ajax call and then update a div with a partial? I've tried this but it's not working. Comment is

[Rails] Re: Help install jquery ui

2011-07-28 Thread Robert Walker
Rodrigo Ruiz wrote in post #1013597: I tryed rails generate jquery:install --ui but my draggable method still does nothing. Have you tried any of the browser developer tools to make sure jquery-ui.???.js is getting loaded. If you're using FireFox then FireBug is good for that. If you're using

[Rails] Re: Rails, jquery and Ajax

2011-07-28 Thread Eric Björkvall
One way: link_to #, new_comment_path, :remote = true, :id = new-comment-link new.js.erb $(#new-comment-link).hide(); $('#commentlist').html('%= render :partial = comments %') You can use ruby logic in the .js.erb file - just like you could in former .rjs files. % if @condition %

[Rails] Unable to change Font

2011-07-28 Thread Yennie
Hi, I have a problem to set up the language I did use @font-face { font-family: english; src: url(%= current_language.get_font_url %) format('truetype'); } html { font-family: english; } %= current_language.get_font_url = app_data/language_english/

[Rails] Nature of Return Values from Search

2011-07-28 Thread Barney
Hello, I'm trying the search method used in the Guides: http://guides.rubyonrails.org/form_helpers.html and I don't know what is coming back to the controller when a text box is empty. When each of the 2 text boxes (described below) have a value then the search works. However, if the second

[Rails] goldsmiths ma/msc in creating social media: a hacktivist approach

2011-07-28 Thread dan mcquillan
some of the rails community may be interested in this new ma/msc from goldsmiths: http://www.gold.ac.uk/pg/ma-creating-social-media/ the cultural studies part focuses on theory and practice that enables new forms of social media, and the computing part leans heavily towards hacking and social

Re: [Rails] Rails, jquery and Ajax

2011-07-28 Thread Eric Björkvall
One way: link_to #, new_comment_path, :remote = true, :id = new-comment-link new.js.erb $(#new-comment-link).hide(); $('#commentlist').html('%= render :partial = comments %') You can use ruby logic in the .js.erb file - just like you could in former .rjs files. % if @condition %

Re: [Rails] Nature of Return Values from Search

2011-07-28 Thread Eric Björkvall
Hej You probably should check the params hash in the controller: @skill_search1 = params[:skill1] etc.. Also use a debugger call in the search method to see the parameters that are passed def search debugger . . end Cheers, Eric On 28 jul 2011, at 22.03, Barney wrote: Hello,

[Rails] Re: Rendering a json view and HTML characters

2011-07-28 Thread Frederick Cheung
On Jul 28, 5:53 pm, Michael José li...@ruby-forum.com wrote: Hi there fellows ! I'm currently working on a JSon view and had to make my own view (for simple ActiveSupport::JSON can't do the trick anymore). The thing is, after my controller does this : respond_to   format.html  

[Rails] Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?

2011-07-28 Thread Frederick Cheung
On Jul 28, 7:22 am, Phoenix Rising polarisris...@gmail.com wrote: Hey guys, I'm taking the plunge and building a new app on Rails 3.1 (asset pipelining ROCKS) and using MongoDB as the backend.  Does anyone know of any good fixtures replacements that work with MongoDB and Rails 3.1?  I

[Rails] RedCloth and sanitizing input

2011-07-28 Thread Jan Marquardt
Hi mates, I've hit a problem and hope for some advices. I am developing a blog for my family and I want to provide the opportuniy that everyone may format his blog posts. After some research I found RedCloth. It seems that it does exactly what I want, but for output i need to use the raw

Re: [Rails] Re: rails mailer and attachments

2011-07-28 Thread Kendall Gifford
On Thu, Jul 28, 2011 at 8:02 AM, Damien Knight li...@ruby-forum.com wrote: so you think, i have to set the mime-type of each attachment manually/explicitly? No. First off, I'd recommend possibly contacting people in the Ruby's Mail Discussion Group

[Rails] Re: Actionmailer Help Needed

2011-07-28 Thread Kendall Gifford
On Thursday, July 28, 2011 10:05:01 AM UTC-6, Ruby-Forum.com User wrote: Hello everyone, Nice to meet you all, am new to the forum. I'm stuck with rake / actionmailer trying to display a set of found records. We have a simple actionmailer rake task that is supposed to send a daily email

[Rails] Passing blocks through render('partialname')

2011-07-28 Thread Brent
How can I capture the block that I pass through a partial. I want to be able to do something like: %= render 'shared/partialname' do % Misc code / text % end % Then I want to display that block at a specific place in that partial. I could do this if I created a method. But I want to know how

[Rails] Re: Nature of Return Values from Search

2011-07-28 Thread Barney
Hi Eric, I'm using Scite and there doesn't seem to be a debugger in it. How else would I check that hash? But, could you tell me what form (type, value) is the return from that empty text box? Thanks, Barney On Jul 28, 4:59 pm, Eric Björkvall eric.bjorkv...@gmail.com

Re: [Rails] Re: Nature of Return Values from Search

2011-07-28 Thread Eric Björkvall
Hej Barney The debugger call will stop the execution and drop you into the debugger - it's not from within your text editor - it's in the terminal window where you run your app Start your app with rails server --debugger or (if your running rails 3.0 ) script/server --debugger Cheers,

Re: [Rails] Re: Nature of Return Values from Search

2011-07-28 Thread Hassan Schroeder
On Thu, Jul 28, 2011 at 3:59 PM, Barney bsper...@gmail.com wrote: How else would I check that hash? Besides the previously mentioned debugger, you can add logging statements to your code to provide more information.     But, could you tell me what form (type, value) is the return from that

[Rails] Re: Passing blocks through render('partialname')

2011-07-28 Thread Andrew Skegg
Brent wejrowski@... writes: How can I capture the block that I pass through a partial. I want to be able to do something like: %= render 'shared/partialname' do % Misc code / text % end % Then I want to display that block at a specific place in that partial. I could do this if I

[Rails] Re: Printing nested data to screen

2011-07-28 Thread Andrew Skegg
Barney bsperlin@... writes: And a relevant section of index.html.erb is: %= @people.each do |person| % tr ... td%= person.zip_code %/td td%= person.skill_set %/td td%= WHAT GOES HERE TO BE ABLE TO PRINT THE position FIELD OF THE employee_infos TABLE? WHAT CHANGES SHOULD

[Rails] Help with heroku and amazon s3 and paperclip

2011-07-28 Thread Rodrigo Ruiz
Well, as the subject, I want to use those 3. Problem is I don't want to use amazon s3 in development, I want to use it only on heroku. How do I do that? Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] Question regarding associations..

2011-07-28 Thread Rick Nellie Flower
Ok.. Still working on this stuff.. I've got the t.reference in the migration for the address class and moved the belongs_to and has_one in the model classes as indicated (I didn't notice that!). I noticed in the association-basics that I should be putting a create_table function (if that's

[Rails] Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?

2011-07-28 Thread dbkbali
I am using Mongoid and factory girl works fine. Havent used mongomapper, but Mongoid seems to provide the flexibility of using active record type relationships, with ongoing active support and upgrades to the orm. Regards David Krett -- You received this message because you are subscribed to

Re: [Rails] Help with heroku and amazon s3 and paperclip

2011-07-28 Thread Conrad Taylor
Sent from my iPhone On Jul 28, 2011, at 6:52 PM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Well, as the subject, I want to use those 3. Problem is I don't want to use amazon s3 in development, I want to use it only on heroku. How do I do that? Thank you, Rodrigo If you're in

[Rails] Re: ActionMailer 2.0.2 NameError

2011-07-28 Thread Manimaran Malaichamy
Thanks for the info.. after i paste the code outside of the block, it worked for me. -- 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