[Rails] Re: I can't install ruby on rails on my mac - Sorry I know it's been posted 1 million times before

2013-05-01 Thread soldier.coder
Try this: http://guides.railsgirls.com/install/#setup_for_os_x On Wednesday, June 13, 2012 6:33:10 AM UTC-4, blakeh92 wrote: > > > Hi guys > > I have a macbook pro version 10.7.4. > I'm so keen to start using the ruby programming language and the ruby on > rails framework, > but I cannot downlo

[Rails] any docs on integrating modular Sinatra with Ruby on Rails?

2012-04-18 Thread soldier.coder
I'm very interested in using some modular Sinatra to do certain things within a Ruby on Rails app. Any pointers as to where I might find how to do this? Thanks! -- 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: Ruby IDEs

2012-03-01 Thread soldier.coder
Since you are a beginner, take some advice -- give up the idea of getting an IDE. On Feb 28, 10:38 am, Valery Kvon wrote: > On 28.02.2012, at 18:46, nada wrote: > > > Hi, > > > I'm a novice in Ruby , I want to ask what is the best IDEs to use Ruby > > for beginners ? > > TextMate, although it is

[Rails] Re: Ruby IDEs

2012-02-28 Thread soldier.coder
First: Free your mind from the shackle that comes from false belief that IDE's are necessary for superior productivity. IDE's are great for compiledh languages like C or C++ as they can spot syntax errors that will cause your program to not compile. Instead, embrace Behavior Driven Development, w

[Rails] Re: learning Ruby and rails

2012-02-16 Thread soldier.coder
Jeff, maybe some other folks have had better luck with windows, but I did not. I switched to Fedora 16 on an old laptop and have been very happy. RVM is a Godsend. And I can tell you every rails person I know says embrace the command line. Get Vim for an editor, etc. Lynda.com has some a pretty

[Rails] Re: How to disable instrumentation in rails 3?

2012-02-16 Thread soldier.coder
when you figure it out, could you drop me a line? SC On Feb 16, 5:56 pm, snacktime wrote: > There is a bug in jruby that causes thread locks around things like > accesses to class attributes created with class_attribute.  The > notifications system is affected by this, and it's blowing up our ap

[Rails] Re: How to use fields_for for child update in 1-to-many in rails 3.1.3?

2012-02-16 Thread soldier.coder
I recommend you visit Ryan Bates site RailsCasts.com and watch episodes 196 and 197. You should go ahead and subscribe, so he will keep doing stuff like this. Cheers! SC On Feb 16, 11:37 am, emc_lab wrote: > A user has many user_levels and a user_level belongs to a user. We are > having difficul

[Rails] Re: Gemfile location

2012-02-16 Thread soldier.coder
If you want to find where a particular gem is: Given: heroku gem is installed When: you want to see where it is Then: $ gem which heroku /home/soldiercoder/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.20.0/lib/ heroku.rb Cheers, SC On Feb 16, 11:40 pm, Maxim Baluev wrote: > When i am create n

[Rails] Re: How to get url parameters from rails

2012-02-16 Thread soldier.coder
given: @url = "http://localhost:3000/esb/ID- swordfish-27243-1327514975752-13-85879" @searchPattern = /(ID-swordfish-(\d+-)(\d+-)(\d+-)(\d+))/ with: Ruby 1.9.2 or greater when: @searchPattern =~ @url then: $1 = "ID-swordfish-27243-1327514975752-13-85879" Individual results may vary! C

[Rails] Re: gravatar_image_tag

2012-02-15 Thread soldier.coder
its about 4 minutes in. On Feb 15, 9:03 pm, Bruno Meira wrote: > Thx soldier, > I will take a look :D -- 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 unsubscrib

[Rails] Re: How to get status from this response?

2012-02-15 Thread soldier.coder
in RSpec something like this? describe "GET 'login'" do it "should be successful" do get 'login' response.should be_success end end On Feb 15, 6:24 pm, regedarek wrote: > I have this response when I run in the console: > >     ruby-1.9.2-p290 :022 > c.login > > > > > > > > > > >

[Rails] Re: How to disable has_secure_password validation when a condition is true?

2012-02-15 Thread soldier.coder
Go to RailsCasts.com and read about OmniAuth with devise. Episodes #235, and #236 I would totally recommend you subscribe to his site, by the way. SC On Feb 15, 11:45 am, David M wrote: > I have a User model that can save two types of users: > >    1. Password-protected users (for this I nee

[Rails] Re: gravatar_image_tag

2012-02-15 Thread soldier.coder
read or watch Ryan Bates RailsCasts episode #244: http://railscasts.com/episodes/244-gravatar?view=asciicast On Feb 15, 5:39 pm, Bruno Meira wrote: > Hi, > In my application I'm using gravatar_image_tag to retrieve user's avatar. > I would like to show a custom image(registered in my assets dir

[Rails] Re: Problem with new Rails installation

2012-02-15 Thread soldier.coder
> I actually already have the DevKit - it is installed by the Rails > installer. You got the Rails installer from http://rubyinstaller.org, right? Humor me, then. Go to http://rubyinstaller.org/add-ons/ and see if your latest matches theirs. I'm thinking that possibly the words "Add- on" is a cl

[Rails] Re: Can't seem to get javascripts to load in rails 3.1.3

2012-02-15 Thread soldier.coder
I am almost certain you are using Rails 3.1 or higher. It has some new assumptions that you may not be aware of. I highly suggest you go to RailsCasts and watch/read episode #265. About 4 minutes into the video, you will have your answer. SC On Feb 15, 1:13 pm, Vell wrote: > Hello all, > > I a

[Rails] Re: Problem with new Rails installation

2012-02-15 Thread soldier.coder
Several ideas, in fact. Since rails is actually telling you are missing a gem, by all means run the command: bundle install Make sure you are in your app's root when you do this. If this solves your problem, great, if not continue to step below and once that is done, run bundler again. There m

[Rails] Re: how to call destroy from jquery

2012-02-15 Thread soldier.coder
you might want to check out Railscasts.com episodes 196 and 197. He uses a link to do that -- not sure if that is what you want, but it is good starting point. On Feb 15, 9:51 am, brent brent wrote: > Folks >   Does anyone know how i could call destroy on a controller using rails > 3.1 from a j

[Rails] Re: Rails 3.0.1 and Rake

2012-02-05 Thread soldier.coder
did that still getting it On Feb 5, 1:13 pm, Alex Mercer wrote: > Add this lines to your Gemfile and run bundle >   gem 'rake', '~> 0.9.2.2' >   gem "rdoc", '~> 3.12' > > On Feb 5, 6:41 pm, "soldier.coder" > wrote: >

[Rails] Re: how to uninstall rails completely

2012-02-05 Thread soldier.coder
I understand honey's situation. You guys on linux have NO idea how good you have it with RVM. I tried Pik (windows supposed answer to RVM) but to no avail. So I turned old laptop into Fedora 16 machine now I am rocking on RVM and all the cool things Fedora offers (VIM!). On Feb 3, 4:20 pm, Robe

[Rails] Re: Can't get WEBrick to work

2012-02-05 Thread soldier.coder
Also, what were exact steps you took to download and install latest version of rails? As someone mentioned above, you need to be in the root directory of your app. What does that mean? When you first started developing your app, you probably did a command like: rails new my_app_name, where "my_ap

[Rails] Rails 3.0.1 and Rake

2012-02-05 Thread soldier.coder
I'm running Rails 3.0.1 and Rake 0.9.2.2 and when I run Rake I get these warnings: WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /home/ed/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/ rdoctask.rb WARNING: Global access to

[Rails] Re: Database level authentication

2012-01-31 Thread soldier.coder
Sounds like you want DB to tell you the roles people play and what permissions go with those roles. On Jan 30, 2:06 pm, Marcin S wrote: > No, I think... > > Its like every db on server have its own set of permissions for > different users ,right? > And i want to authenticate user based on that p

[Rails] Re: Database level authentication

2012-01-31 Thread soldier.coder
http://railscasts.com/episodes/209-introducing-devise or even more fun: http://railscasts.com/episodes/235-omniauth-part-1 and http://railscasts.com/episodes/236-omniauth-part-2 On Jan 30, 11:36 am, Marcin S wrote: > Hello, Im trying to write a simple app  for company internal usage. > The oth

[Rails] Re: Weird Error when Adding ShareThis Hovering Buttons to Rails

2011-09-12 Thread soldier.coder
Sheng-Loong, I bet no one wants to have to go to a site, agree to licensing agreement, and then fill out a form so they can help you with your problem. The morale of the story is: if you want help, make it easy for people to see your problem On Sep 11, 6:57 am, shengloong wrote: > Hi all, > > I

[Rails] Rails 3 and script/generate

2011-08-22 Thread soldier.coder
what is rails 3 equivalent to script/generate? I am trying to use Twitter-OAuth and it has a generator and I am not sure how to use it. The documentation is all for rails 2.3. Any ideas are appreciated! -- You received this message because you are subscribed to the Google Groups "Ruby on Rail

[Rails] problems getting a particular version

2009-12-20 Thread soldier.coder
I am running on windows and try the following command to no avail: gem install rails --version 2.2.2 and I get back: ERROR: could not find rails locally or in a repository. Why do I get this error? How do I fix it? -- You received this message because you are subscribed to the Google Groups "R

[Rails] routes, controllers, and intentions

2009-04-27 Thread soldier.coder
I have the following tables: courses, students, and rosters. The rosters table references the courses and students tables. With default routes in place, to list the students in a course I would use: http://localhost:3000/rosters/list but this lists the rosters for all courses. if I use http://