[Rails] Re: What's the right adapter to use for SQL Server?

2010-04-28 Thread command0
Aside from the migrations and database.yml, have you changed any other code in the app? On Apr 28, 7:10 am, Norman Smith wrote: > I am porting a Rails app that is made up of 2 rails projects to SQL > Server. The app already runs with MySQL and Oracle. One Rails project is > the UI with a database

[Rails] Re: simple search

2010-04-28 Thread command0
You want to take a look at the SearchLogic GitHub Readme page: http://github.com/binarylogic/searchlogic So in your controller, you'll want something like: class UsersController < ApplicationController def index @search = User.search(params[:search]) @users = @search.all end

[Rails] Re: simple search

2010-04-28 Thread command0
So you're using SearchLogic? On Apr 28, 6:54 am, swetha wrote: > I need help with simple search .I worked on railscasts example,but its > not working. > Can anyone give me an example of simple search logic.Thanks in Advance > > -- > You received this message because you are subscribed to the Goog

[Rails] Re: About your application's environment URL not found

2010-04-25 Thread command0
to do. Yes, a2ensite does in all actuality create a symlink, but it's a more seamless way of doing it with distro's that support the modularised implementation of Apache 2. On Apr 25, 12:21 am, "Joe Smith" wrote: > "command0" wrote > in > messagenews:4

[Rails] Re: About your application's environment URL not found

2010-04-23 Thread command0
Oh yes, I forgot to tell you how to disable the default site. >From the shell run "sudo a2dissite default". Then run your preferred editor, and create a new file in /etc/apache2/ sites-enabled, and name it whatever you want. I usually name it something similar to the domain name of the app or sit

[Rails] Re: About your application's environment URL not found

2010-04-23 Thread command0
Welcome to Rails. :) It all seems overwhelming at first, but it is quite easy to learn once you get your head around how Rails does things in contrast to other languages. So a couple thoughts. It sounds like you are running on a Linux distro. Ubuntu or Debian it appears from the Apache directory

[Rails] Re: can i have a model called FILE.RB?

2010-04-22 Thread command0
Thanks for sharing that URL. Yeah, I've ran into a couple myself. Yeah, File is definitely a Ruby class name, which is inherited from the IO class. I tried making a model called both Application and Type in the same app actually. Let's just say it didn't go too well... ;) On Apr 22, 7:47 pm, Dav

[Rails] Re: Update related model after_destroy object

2010-04-17 Thread command0
It sounds like the solution you are looking for is going to require parsing some JSON, and then handling the update through something like jQuery. I'm still trying to wrap my head around AJAX interacting with Rails in such a way. Before you'd just use RJS, and Prototype would handle the request, b

[Rails] Having trouble looping through an array of Regular Expressions in a Rake task

2010-04-17 Thread command0
Hey guys, I was wondering if someone could give me some insight on an issue I'm having. I am working on a Rails app that will be a data efficient, user friendly New King James Version of the Bible. What I am presently doing is making a Rake task to build all the chapters to all of the books. So

[Rails] Re: Using ActionMailer on a controller method

2010-03-21 Thread command0
The value of @ticket is represted as an array of all the attributes of the ticket itself. I just realized that. I had to change my link_to arguments just slightly... On Mar 21, 3:38 pm, Michael Pavling wrote: > On 21 March 2010 21:29, command0 wrote: > > > I have: > > > m

[Rails] Re: Using ActionMailer on a controller method

2010-03-21 Thread command0
I have: map.resources :tickets, :has_many => [:notes, :comments] In routes.rb. On Mar 21, 3:20 pm, Michael Pavling wrote: > On 21 March 2010 21:01, command0 wrote: > > > 5: You can view your ticket at <%= link_to @ticket %>. > > Do you have "map_resources

[Rails] Re: Using ActionMailer on a controller method

2010-03-21 Thread command0
e %>" has been created for you on the Student Helpdesk Portal. 4: 5: You can view your ticket at <%= link_to @ticket %>. 6: 7: You may submit comments on the ticket to provide questions or feedback concerning the ticket. 8: app/views/ticket_mailer/newticket.erb:5 app/controllers/tic

[Rails] Using ActionMailer on a controller method

2010-03-21 Thread command0
Hi guys (and gals), I have the most strange issue that I just cannot figure out. It doesn't make sense at all why it's happening, and had a fellow Rails developer friend of mine from the UK look at it with me last night, and still couldn't figure it out. Ok, so I have a helpdesk ticketing system

[Rails] Scaffolding and dealing with generated actions in the controllers

2008-10-28 Thread command0
Hey Everyone, I wanted to know if I could get some insight on something. I am using Rails 2.1.2 and for something that needs beyond basic functionality, I typically generate a scaffold so I don't have to manually create everything and save some time. Well as you all most likely know, along with g

[Rails] Re: Generating a random number

2008-10-28 Thread command0
Thanks everyone for your help. A couple different ways actually worked that you all suggested. That was just driving me crazy not being able to figure out the small details of a random number in Rails. Every language does it slightly differently too. Thanks, Justin On Oct 17, 1:02 pm, Daniel M

[Rails] Generating a random number

2008-10-16 Thread command0
Hey guys, Ok, so right now I am working on generating a random number with ruby or rails? So far I have gathered that I somehow or another want to use the rand() helper to so, but not sure how to do it to achieve what I am trying to accomplish. What I am trying to do, is have a 6 digit number r

[Rails] Re: Keep getting "Undefined local variable or method" when creating a new rails application

2008-10-16 Thread command0
course title:string description:text > course_num:integer > > and > >   rake db:migrate > > And you should be good. > > HTH, > > -Roy > > -Original Message- > From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of command0 >

[Rails] Re: Handling nil.errors in error_messages_for

2008-10-15 Thread command0
Now, is @account a variable or a class? I could be way off in left field, but it looks like your calling objects that should be from a class. Variables should only be called by themselves typically. On Oct 15, 3:59 pm, Mark Richman <[EMAIL PROTECTED]> wrote: > How do you deal with multiple object

[Rails] Re: Rails sessions working intermittently in IE7

2008-10-15 Thread command0
Is this just happening in IE7? Can you replicate the issue in other browsers like Chrome, Firefox, Safari, etc... ? On Oct 15, 4:00 pm, gwgeller <[EMAIL PROTECTED]> wrote: > Hello, > We are developing in Rails 2.1.0 and serving the files with mongrels > behind Apache. We are using SqlSessionStore

[Rails] Re: Keep getting "Undefined local variable or method" when creating a new rails application

2008-10-15 Thread command0
Oh Yes, and I forgot to mention I step I did in between. After generating the scaffold, then I'd migrate the database. prompt>rake db:migrate Just wanted to throw that in there so nobody mentions me missing that step, lol :P Thanks, Justin On Oct 15, 3:57 pm, command0 <[EMAI

[Rails] Keep getting "Undefined local variable or method" when creating a new rails application

2008-10-15 Thread command0
Hi, I'm fairly a noob to rails, and just trying to grasp the entire structure and concept. I think I'm getting it for the most part, but just can't seem to get past this error. I keep getting "Action Controller" page with the error: "undefined local variable or method `new_courses_path' for #".

[Rails] Re: Users generator?

2008-10-14 Thread command0
I'm still fairly a noob to rails myself. I'm more used to PHP, Java, and C++ mostly. It definitely does throw you through a loop a few times. Anyhow, to clarify, if you are asking if there is an extension or plugin that will generate actual user accounts for you, that isn't going to happen unfort