[Rails] Re: Unable to deploy to Apache

2012-04-10 Thread Kal
Hi Walter, I was wrong; creating a new user 'app_user', adding it to the sudoer file, and then applying 'chown - R app_user /home/rubys/work/depot' did work. I was just reading too deep into Cowboy's (http://www.cowboycoded.com/ tag/passenger/) instructions, which didn't pertain to my setup (spec

[Rails] Re: get the json in rails 3

2012-04-10 Thread Robert Walker
amvis wrote in post #1055643: > I am trying to pass one json from one function. Here for the testing i > am > using mozilla Rest-client, where i pass the json as request body, so i > need to take that and pass into one function, but i could parse that > json > for getting the value, so how to get

[Rails] Re: TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"

2012-04-10 Thread Tsolmon Otgonbold
I downloaded FreeTDS 0.91 source code, and executed ./configre, make, make install, make clean. After this, the above problem disappeared, i.e., freeTDS had not actually been installed. Thanks for your valuable words :D -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"

2012-04-10 Thread Tsolmon Otgonbold
forgot the gem env: RubyGems Environment: - RUBYGEMS VERSION: 1.6.2 - RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS:

[Rails] Re: TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"

2012-04-10 Thread Tsolmon Otgonbold
Thanks for your concern :) Well, I am using Ubuntu 8.04.3 LTS server version. >> What version of FreeTDS got installed? In the /etc/freetds/freetds.conf file, it is written as # $Id: freetds.conf,v 1.9 2003/12/04 22:26:55 freddy77 Exp $ I don't know how to check the version of freetds properly, m

[Rails] Re: All Integration Tests Fail When They Shouldn't

2012-04-10 Thread Dheeraj Kumar
Did you migrate in test environment? Dheeraj Kumar On Tuesday 10 April 2012 at 2:48 AM, Nick Apperley wrote: > Whenever I run the integration tests I find that if one test fails > they all fail. This occurs even if one or more of the tests should > succeed. Tried various solutions like clearin

Re: [Rails] Re: Debugging errors in asset pipeline-compressed JS

2012-04-10 Thread Walter Lee Davis
On Apr 10, 2012, at 10:34 AM, Marko Anastasov wrote: > I have realized that minified JS does not work because mangled code broke > some metaprogramming from my codeveloper. So right now I'm looking for a way > to tell Uglifier to just strip whitespace, or ideally strip whitespace on > certain

[Rails] Re: :locals does not pass var in rails 3.1.0 partial view

2012-04-10 Thread cj
I have this same issue :/ On Monday, January 23, 2012 9:20:37 PM UTC-6, emc_lab wrote: > > Here is code in form.html.erb for partial view. Local var :sid was > defined as the id of the record and it should be passed into the > partial view standards.html.erb as a local var. > > <% @rfq.st

[Rails] Re: TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"

2012-04-10 Thread Luis Lavena
El martes, 10 de abril de 2012 07:25:15 UTC-3, Ruby-Forum.com User escribió: > > Hello Dear experts, > > I am new to Ruby on Rails. Though I want to access to MSSQL 2005 from > ruby. > I installed tiny_tds using following commands: > >sudo apt-get install freetds-dev > >gem install tiny_tds > > Wha

[Rails] Re: Ideas on a project or gem to develop

2012-04-10 Thread Joel Dezenzio
I work extensively with Remedy and Frontline products and am a core SME for most BMC products. I started working on a HelpDesk web interface a few months ago and am still combing through integration ideas. The only difference my solution might add from others is that it will integrate with LD

[Rails] Re: what does "use" statement do ?

2012-04-10 Thread Frederick Cheung
On Apr 10, 3:47 pm, Jedrin wrote: >  I have left my ruby books at home. I am looking at some code that has > stuff like > > use Rack::Flash > This (in a rack configuration file) tells rack to add the Rack::Flash middleware to the middleware stack. Hopefully that gives you something more explici

[Rails] All Integration Tests Fail When They Shouldn't

2012-04-10 Thread Nick Apperley
Whenever I run the integration tests I find that if one test fails they all fail. This occurs even if one or more of the tests should succeed. Tried various solutions like clearing out the cache, checking to see if the tests are written correctly, double checking the routes used for testing, but it

Re: [Rails] how to use cronjob

2012-04-10 Thread Kevin Bedell
A better approach I believe is to use redis/resque to queue the emails to be sent -- and then use resque-scheduler to schedule the jobs to run whenever you want them to run. There are a bunch of reasons why redis is a better approach to queuing work in general, so I'd look into this. What you wan

Re: [Rails] how to use cronjob

2012-04-10 Thread Javier Quarite
On Tue, Apr 10, 2012 at 11:16 AM, honey ruby wrote: > hey everyone i want to send mails by scheduling the time > dynamically.lets say in a single table i have all the employee logs > who came at different timings.they are from different locations and > departments. i want to send mails to differen

[Rails] how to use cronjob

2012-04-10 Thread honey ruby
hey everyone i want to send mails by scheduling the time dynamically.lets say in a single table i have all the employee logs who came at different timings.they are from different locations and departments. i want to send mails to different mails ids according to there location to there HR. can i do

[Rails] what does "use" statement do ?

2012-04-10 Thread Jedrin
I have left my ruby books at home. I am looking at some code that has stuff like use Rack::Flash and some other more complex statements similar to that. I am not sure what "use" does and it is too common a word to google. Any links or explanations would be appreciated .. Thanks -- You recei

Re: [Rails] Re: Debugging errors in asset pipeline-compressed JS

2012-04-10 Thread Marko Anastasov
I have realized that minified JS does not work because mangled code broke some metaprogramming from my codeveloper. So right now I'm looking for a way to tell Uglifier to just strip whitespace, or ideally strip whitespace on certain files but mangle 3rd party libs. On Monday, April 9, 2012 4:38

[Rails] Searching and Filtering DB results

2012-04-10 Thread Miguel A.
Hi all, im using rails 3.2.2 / ruby 1.8.7 and am having a bit of a problem googling what I need. In my main page I am displaying all products of my MySQL DB and I want to have a sidebar that allows me to filter the results. Filters are by textfields and dropdown lists (also comparing start and en

Re: [Rails] Re: Reading json in a JS file

2012-04-10 Thread Colin Law
On 10 April 2012 12:13, bertly_the_coder wrote: > Hahaha! Colin, you are a funny guy, eh? I don't understand what is funny. I pointed out what seemed to be an obvious error in your code. It is easy to miss typographical errors when looking at your own code. Colin > > OK, That was a dumb mista

Re: [Rails] Re: User Association

2012-04-10 Thread Colin Law
On 10 April 2012 11:14, deee el wrote: Please don't top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks > i want to have the name of the user who created the each post under > their post, what i have now in my view only shows

[Rails] Re: Reading json in a JS file

2012-04-10 Thread bertly_the_coder
Hahaha! Colin, you are a funny guy, eh? OK, That was a dumb mistake, this is what I get for mixing languagesfor anyone interested, the returned data is in the callback...duh! So the response is in: $.getJSON('/members/check_shared_on_fb_or_twitter', function(response) {

[Rails] TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"

2012-04-10 Thread Tsolmon Otgonbold
Hello Dear experts, I am new to Ruby on Rails. Though I want to access to MSSQL 2005 from ruby. I installed tiny_tds using following commands: >sudo apt-get install freetds-dev >gem install tiny_tds And now when I executed @client = TinyTds::Client.new( :username => 'username', :passwor

[Rails] Re: User Association

2012-04-10 Thread deee el
I think what i wrote there is rubbish, just ignore it and if you have a better method pls put me through, thanks Colin Law wrote in post #1055788: > On 10 April 2012 10:31, deee el wrote: >> format.html >> end >> end >> >> def create >> @post = current_user.posts.create(:message => params[:me

Re: [Rails] User Association

2012-04-10 Thread Colin Law
On 10 April 2012 10:31, deee el wrote: > Please Im trying to create an application where i can post like twitter, > but i was the users name to be posted under their respective posts > > My Post_controller looks like this > def index >    @posts = Post.all(:order => "created_at DESC") >    @users

[Rails] Re: User Association

2012-04-10 Thread deee el
i want to have the name of the user who created the each post under their post, what i have now in my view only shows the post, can u help me wit this Colin Law wrote in post #1055779: > On 10 April 2012 10:31, deee el wrote: >> format.html >> name. > Not sure I understand exactly, but if yo

[Rails] Re: New service to improve i18n management

2012-04-10 Thread Manuel Boy
Nice! Great to hear you like it ;-) Am Samstag, 7. April 2012 15:37:10 UTC+2 schrieb YogiZoli: > > Excellent idea, just signed up! > > On Apr 6, 12:31 pm, comopasta Gr wrote: > > Manuel Boy wrote in post #1055240: > > > > > Hi everyone! > > > > > we have been working on phrase

Re: [Rails] User Association

2012-04-10 Thread Leonardo Mateo
On Tue, Apr 10, 2012 at 6:31 AM, deee el wrote: > Please Im trying to create an application where i can post like twitter, > but i was the users name to be posted under their respective posts > > My Post_controller looks like this > def index >    @posts = Post.all(:order => "created_at DESC") >  

Re: [Rails] User Association

2012-04-10 Thread Colin Law
On 10 April 2012 10:31, deee el wrote: > Please Im trying to create an application where i can post like twitter, > but i was the users name to be posted under their respective posts > > My Post_controller looks like this > def index >    @posts = Post.all(:order => "created_at DESC") >    @users

Re: [Rails] Reading json in a JS file

2012-04-10 Thread Colin Law
On 10 April 2012 10:27, bertly_the_coder wrote: > Hi guys, > > I'm having a little bit of a problem. I have a controller method that > renders json: >      render :json => current_member.to_json > > This method is called in a js file using a simple get call. In firebug > I see that the response fr

[Rails] User Association

2012-04-10 Thread deee el
Please Im trying to create an application where i can post like twitter, but i was the users name to be posted under their respective posts My Post_controller looks like this def index @posts = Post.all(:order => "created_at DESC") @users = User.find(:all) #@user_id = current_user.find

[Rails] Reading json in a JS file

2012-04-10 Thread bertly_the_coder
Hi guys, I'm having a little bit of a problem. I have a controller method that renders json: render :json => current_member.to_json This method is called in a js file using a simple get call. In firebug I see that the response from the get call is a json string, as I wanted it to be:

Re: [Rails] How to use testing framework

2012-04-10 Thread Colin Law
On 10 April 2012 09:31, Mahes karthick wrote: > how to use testing framework in ruby on rails?.. i could not find > perfect documents for how to use those frameworks..i doesnot know how to > start and check the application is working correctly or not... Work through the tutorial at railstutorial.

[Rails] Re: ActiveRecord scope with advanced condition

2012-04-10 Thread Ivo Reis
Hi there Chris, i already found a solution, but thanks anyway. I need to check from 2 table entries where they have a field in common. Here's the snippet: > User.from("Users as u1, Users as u2).where("u2.LastName=u1.LastName AND u1.id > != u2.id") On 9 Abr, 19:38, Chris Morris wrote: > Maybe

[Rails] How to use testing framework

2012-04-10 Thread Mahes karthick
how to use testing framework in ruby on rails?.. i could not find perfect documents for how to use those frameworks..i doesnot know how to start and check the application is working correctly or not... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr