[Rails] Re: intership

2012-07-03 Thread Runy Calmera
Jeff what kind of internship are you looking for? You mind working only online and what fee do you want to earn for your internship? Op woensdag 13 juni 2012 00:48:26 UTC-4 schreef Jeff Kyzer het volgende: > > Hello > > I am looking for a part time position or maybe an intership using ruby > o

[Rails] How to completely reinstall my rails environment on Mac Lion?

2012-07-03 Thread Runy Calmera
Hi, I was learning rails and have completed some projects. On my laptop everything worked for quite some time. However now when I run rails new testapp, for example it doesn't generate even the first testapp. How can I completely reinstall a rails environment on my mac? I ran several step by st

[Rails] Re: How to become effective and professional in Rails?

2012-07-03 Thread Runy Calmera
Hi Guys, I'm also in the same situation. However I come from the business analysis side. No programming knowledge and I have been doing some Ruby on Rails programming during the last year. My suggestions are as follows: - Get a project of your own where you are really interested in. Som

[Rails] Re: E-Books for RoR 3

2012-07-03 Thread Clint326
Here's a free student manual that I found useful: https://github.com/bryanbibat/rails-3_0-tutorial On Wednesday, June 27, 2012 5:46:46 AM UTC-5, Mandy wrote: > > Hello All, > > I want to learn RoR3. So kindly suggest me free and online > downloadable E-Books for Rub on Rails 3. > > Thanks in

[Rails] ActiveRecord method

2012-07-03 Thread Yusuke Enomoto
Hello.I have a question. I am making chat application to practice RoR. I have three models. User, Chat, and Message. The relationship is that User has many chats(it means chat's host) and many message,s Chat has many messages. Now I want to create a lobby page like this. http://freezing-sword

[Rails] View with Variable Number of Fields

2012-07-03 Thread Clint326
I'm a relative n00b when it comes to Rails. I've gone through Michael Hartl's tutorials (both editions, books and screencasts) and I can build a basic CRUD web app without help. However, for a personal project I'm working on, I'm lost as to how to move forward. Here's the situation ... I have a

Re: [Rails] Re: slow development compiling with asset pipleine

2012-07-03 Thread Peter Mellett
Yeah it is sluggish. Worst performance is on Windows. On 02/07/12 20:16, S Ahmed wrote: any comments? On Sun, Jul 1, 2012 at 10:30 PM, S Ahmed > wrote: I don't have much experience with the new asset pipleine, but when developing locally it seems things ar

[Rails] [JOBS] Ruby on Rails devs in France! (remote to be considered)

2012-07-03 Thread SylvaLeadformance
*Are you searching for an exciting technical career where you can work on innovative projects in a fast-growing start-up company? * *Are a you a Ruby on Rails enthusiast and wish to work and grow within a dynamic and professional team of developers?* - Participation in a great innovative

Re: [Rails] error in runtime controller#view

2012-07-03 Thread Abhishek Sharma
subjects has many pages subject controller code:: class SubjectController < ApplicationController def list @subjects = Subject.order("subjects.position ASC") end def show @subject = Subject.find(params[:id]) end def new @subject = Subject.new(:visible => 'false') @subject_count = Subject.count

Re: [Rails] error in runtime controller#view

2012-07-03 Thread radhames brito
On Wed, Jul 4, 2012 at 12:23 AM, rocky wrote: > m getting an error "Called id for nil, which would mistakenly be 4 -- if you > really wanted the id of nil, use object_id" > > when i'm creating new record,like a topic has many discussions,when i'm > creating a new discussions m getting that erro

[Rails] error in runtime controller#view

2012-07-03 Thread rocky
m getting an error "Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id" when i'm creating new record,like a topic has many discussions,when i'm creating a new discussions m getting that error..i already assign the topic id as foreign key in dis

[Rails] Re: Creating a new record doesnt update the browser view

2012-07-03 Thread cyber c.
Hi Colin, Thanks for the response . I have spent enough time debugging my rails app and found that the default code generated by the rails itself is buggy. I have created a new scaffold for the resource Trial. After creating a new entry, the index page of the resource shows up stale data. (I s

Re: [Rails] how to create gemsets using rvm

2012-07-03 Thread Colin Law
On 3 July 2012 20:52, Kory Tegman wrote: > the one thing that i noticed from screen cast that they did not talk about > is the scope of your rvm and gem installs. you should have rails installed > on your machine globally before you install it in a gemset or a .rvmrc > environment. It is not nece

Re: [Rails] how to create gemsets using rvm

2012-07-03 Thread Kory Tegman
the one thing that i noticed from screen cast that they did not talk about is the scope of your rvm and gem installs. you should have rails installed on your machine globally before you install it in a gemset or a .rvmrc environment. On Monday, July 2, 2012 10:43:46 PM UTC-7, honey ruby wrote:

Re: [Rails] a hands-on tutoring needed

2012-07-03 Thread Walter Lee Davis
On Jul 3, 2012, at 1:16 PM, sehrguey o. wrote: > Walter, > here is the contents of my disk.rb > --- > class Disk < ActiveRecord::Base > attr_accessible :director, :language, :notes, :starring, :title, > :volume_name, :wrapper > > def self.search(search) >if search > find(:all

Re: [Rails] How to display error in view for an instance

2012-07-03 Thread Walter Lee Davis
On Jul 3, 2012, at 1:05 PM, renu mehta wrote: > Walter Davis wrote in post #1067201: >> On Jul 3, 2012, at 1:59 AM, renu mehta wrote: >> >>> >>> instance in the array? >> What do you see if you iterate over the members of the array, like this >> (in a view, just for debugging purposes)? >> >>

[Rails] Re: a hands-on tutoring needed

2012-07-03 Thread sehrguey o.
dear Gregory, I watched both episodes you mentioned, they did not work for me, I couldn't figure out where the views come into play, which model stores the searched items and what is in the controller of that invisible model. yours` sehrguey -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: a hands-on tutoring needed

2012-07-03 Thread sehrguey o.
Walter, here is the contents of my disk.rb --- class Disk < ActiveRecord::Base attr_accessible :director, :language, :notes, :starring, :title, :volume_name, :wrapper def self.search(search) if search find(:all, :condition=>['name LIKE ?', "%#{search}%"]) else find

[Rails] Re: How to display error in view for an instance

2012-07-03 Thread renu mehta
Walter Davis wrote in post #1067201: > On Jul 3, 2012, at 1:59 AM, renu mehta wrote: > >> >> instance in the array? > What do you see if you iterate over the members of the array, like this > (in a view, just for debugging purposes)? > > <%- @member_list.each do |member| %> > <%= member.inspect

Re: [Rails] Re: slow development compiling with asset pipleine

2012-07-03 Thread S Ahmed
Sorry I don't recall exactly what version, but it was my first app using the asset pipeline and it took forever for the application to load using: rails server I know it was b/c of the asset pipeliness feature, and was curious as to how I could potentially speed that up. I'll try with a simple a

Re: [Rails] How to display error in view for an instance

2012-07-03 Thread Walter Lee Davis
On Jul 3, 2012, at 1:59 AM, renu mehta wrote: > Hello, > > How can we display the errors in a view if that view contains one > instance of type member and an array also of instances from the same > model. In my app I have a form which accepts a member data for > registration for a family on the

Re: [Rails] Rspec failure on rails 3.2.6

2012-07-03 Thread Colin Law
On 3 July 2012 12:21, venkata reddy wrote: > I have a simple rspec test which is failing in after i upgrade to > 3.2.6. > > here is the spec in users_controller_spec.rb > > describe "show action" do > before(:each) do > User.stub!(:find).with(@user.id).and_return(@user) > end > > def do_

Re: [Rails] Rspec failure on rails 3.2.6

2012-07-03 Thread Oscar Del Ben
it looks like parameters are now passed as strings. -- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, July 3, 2012 at 4:21 AM, venkata reddy wrote: > I have a simple rspec test which is failing in after i upgrade to > 3.2.6. > > here is the spec in users_cont

Re: [Rails] variable symbol

2012-07-03 Thread Colin Law
On 3 July 2012 08:20, Sebastian H. wrote: > Hi > > i hava a database tst with attributes d1 and d2 > > in an array a=["d1","d2"] > > to get to the value of tst.d1 i can use > > tst.send a[0].to_sym > > how can i change the value of d1 in this way ? > > something like > > tst.send a[0].to_sym = "he

Re: [Rails] Re: variable symbol

2012-07-03 Thread Aleksey V Zapparov
On Tue, 3 Jul 2012 14:07:37 +0100 Michael Pavling wrote: > On 3 July 2012 13:04, Aleksey V Zapparov wrote: > > I don't speak Deutsch, but I guess I understood you. Sorry it was my > > mistake (copy-paste is evil): > > > > us.bslnk.send :"#{tst}=" false > > You're probably going to need a comma

Re: [Rails] Re: variable symbol

2012-07-03 Thread Michael Pavling
On 3 July 2012 13:04, Aleksey V Zapparov wrote: > I don't speak Deutsch, but I guess I understood you. Sorry it was my > mistake (copy-paste is evil): > > us.bslnk.send :"#{tst}=" false You're probably going to need a comma in there to separate the parameters being passed to .send us.bslnk.sen

Re: [Rails] Re: variable symbol

2012-07-03 Thread Aleksey V Zapparov
On Tue, 03 Jul 2012 13:37:46 +0200 "Sebastian H." wrote: > 1.9.3-p125 :039 > us.bslnk.send :"#{tst}=" = false > SyntaxError: (irb):39: syntax error, unexpected '=', expecting $end > us.bslnk.send :"#{tst}=" = false > ^ > --- > > iwie tut das nicht :( > I don't sp

[Rails] Re: variable symbol

2012-07-03 Thread Sebastian H.
1.9.3-p125 :039 > us.bslnk.send :"#{tst}=" = false SyntaxError: (irb):39: syntax error, unexpected '=', expecting $end us.bslnk.send :"#{tst}=" = false ^ --- iwie tut das nicht :( -- Posted via http://www.ruby-forum.com/. -- You received this message because you a

[Rails] Re: slow development compiling with asset pipleine

2012-07-03 Thread venkata reddy
On Tuesday, July 3, 2012 12:46:07 AM UTC+5:30, Gitted wrote: > > any comments? > > On Sun, Jul 1, 2012 at 10:30 PM, S Ahmed wrote: > >> I don't have much experience with the new asset pipleine, but when >> developing locally it seems things are very very slow to compile now. >> >> Am I missing

[Rails] Rspec failure on rails 3.2.6

2012-07-03 Thread venkata reddy
I have a simple rspec test which is failing in after i upgrade to 3.2.6. here is the spec in users_controller_spec.rb describe "show action" do before(:each) do User.stub!(:find).with(@user.id).and_return(@user) end def do_get get :show, :id => @user.id end it "should be succe

Re: [Rails] Plugin help Tabbed view in Rails 3

2012-07-03 Thread Shalini Sah
I found this helpful ( http://blog.lrdesign.com/2010/06/logical-tabs-a-rails-helper-for-html-tab-interfaces-with-persistance/) if anyone requires :) On Tue, Jul 3, 2012 at 2:03 PM, Loganathan Sellapa wrote: > Try this 'http://rubygems.org/gems/tabs_on_rails' > > regards, > Loganathan > ViewMe

Re: [Rails] variable symbol

2012-07-03 Thread Aleksey V Zapparov
On Tue, 03 Jul 2012 09:20:11 +0200 "Sebastian H." wrote: > to get to the value of tst.d1 i can use > tst.send a[0].to_sym > > how can i change the value of d1 in this way ? > something like > tst.send a[0].to_sym = "hello" ?? Almost, but, you myst to send `:d1=` symbol, so correct call is: tst

Re: [Rails] Re: variable iteration

2012-07-03 Thread Colin Law
On 3 July 2012 09:23, Sebastian H. wrote: > how can i change the value of d1 in this way ? Did you not just ask that 1 hour ago? There is no point posting the same question twice, it will just annoy people. Colin > > something like > > tst.send a[0].to_sym = "hello" ?? > > Thanks > > -- > Post

Re: [Rails] Plugin help Tabbed view in Rails 3

2012-07-03 Thread Loganathan Sellapa
Try this 'http://rubygems.org/gems/tabs_on_rails' regards, Loganathan ViewMe On Tue, Jul 3, 2012 at 1:14 PM, Shalini Sah wrote: > Hi, > > I am trying to create a tabbed view for my RoR application where I am > trying to project the same partial by passing some l

[Rails] Re: variable iteration

2012-07-03 Thread Sebastian H.
how can i change the value of d1 in this way ? something like tst.send a[0].to_sym = "hello" ?? Thanks -- 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 rub

Re: [Rails] Re: Version changes listing

2012-07-03 Thread Mirri Kim
Hi, there are links to the release notes at the bottom of that page (e.g., http://guides.rubyonrails.org/3_2_release_notes.html). On Fri, Jun 29, 2012 at 10:32 AM, RVince wrote: > Carlos, I keep going over this url, but I dont see any reference to > version changes here. What am I missing? Thank

[Rails] Plugin help Tabbed view in Rails 3

2012-07-03 Thread Shalini Sah
Hi, I am trying to create a tabbed view for my RoR application where I am trying to project the same partial by passing some local variables to it, but I have not been successful so far.Please point to some nice rails plugins for tabbed panels in rails 3.0 as well as some video or written tuto

[Rails] variable symbol

2012-07-03 Thread Sebastian H.
Hi i hava a database tst with attributes d1 and d2 in an array a=["d1","d2"] to get to the value of tst.d1 i can use tst.send a[0].to_sym how can i change the value of d1 in this way ? something like tst.send a[0].to_sym = "hello" ?? Thanks -- Posted via http://www.ruby-forum.com/. -- Y

Re: [Rails] Rails compatibility with Ubuntu

2012-07-03 Thread Mandeep Kaur
On Tue, Jul 3, 2012 at 12:38 PM, Ahmy Yulrizka wrote: > Rails 2.x is 1.8.7 i think, > Rails 3.0 and 3.1 and 3.2 is compatible with 1.8.7 and 1.9 and Jruby 1.5.2+ > > You can check on the rails release note of each version : > http://guides.rubyonrails.org/ > Thanks .. : ) -- Mandeep Kaur http:/

Re: [Rails] Rails compatibility with Ubuntu

2012-07-03 Thread Ahmy Yulrizka
Rails 2.x is 1.8.7 i think, Rails 3.0 and 3.1 and 3.2 is compatible with 1.8.7 and 1.9 and Jruby 1.5.2+ You can check on the rails release note of each version : http://guides.rubyonrails.org/ Ahmy Yulrizka On Tue, Jul 3, 2012 at 8:57 AM, Mandeep Kaur wrote: > On Tue, Jul 3, 2012 at 11:59 AM,