search for: davidsmit

Displaying 12 results from an estimated 12 matches for "davidsmit".

Did you mean: davidsmi
2006 Jun 23
5
Ajax zooming pictures
Hi, I was wondering if anyone has an idea of the code that I can write to achieve the follow effect. http://www.istockphoto.com/file_search.php?action=file&userID=938503 When you move your mouse over an image, it shows a bigger picture. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 12
8
sending email
Hi, Has anyone got any good tutorials on how to send emails in ruby, seems a bit more complicted than PHP Thanks Scott -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
2
Ferret Issues
Hi, I have installed the ferret gem (on WIN XP). My search and result view is working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields =>
2006 Jul 21
1
Passing a variable between methods
Hi, I am trying to add search functionality to may application. I am struggeling to pass my query to the controller and then show all my search results in another view. How would I do this? Model: class Advert < ActiveRecord::Base belongs_to :user def self.search(query) if !query.to_s.strip.empty? tokens = query.split.collect {|c| "%#{c.downcase}%"}
2006 Aug 12
4
Ferret Wierdness
Hi, I have installed the ferret gem (on WIN XP). My search and result view is working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields => [''title'',''description'',''price'',''website_url'']
2006 Apr 02
1
One to Many Relationship Issues
Hi, I am having issues with a one to many relationship(it never works :-)). Jokes aside, I am getting an error: Mysql::Error: #23000Cannot add or update a child row: a foreign key constraint fails: INSERT INTO adverts (`image_url`, `price`, `title`, `website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'',
2006 Aug 12
0
How do I pass query from from to the controller?
Hi I need to pass a query string for a search to a controller from the view. View: <%= start_form_tag(:action => ''get_results'') %> <%= text_field ''search'', ''search_term'' %> <%= submit_tag "Search" %> <%= end_form_tag %> Controller: def get_results(query)
2006 Jul 06
1
Form not inserting data into database
I have a form to register a user. The issue I am having is the fact that it only populates login, hashed_password and created_at fields. DB table: create table users ( id int not null auto_increment, login varchar(100) default null, hashed_password char(40) default null, email varchar(255) default null, salt varchar(255) default
2006 May 03
2
Ajax, getting Data from the Database every 5 seconds
Hi, I want to show 3 products every 5 seconds using AJAX. I want to get 3 random products from the database and show them. How would I go about doing that? Thanks David -- Posted via http://www.ruby-forum.com/.
2006 May 28
0
How to fix NameError?
Hi, I get the following error in production: Processing Base#index (for 68.146.229.246 at 2006-05-28 14:49:59) [GET] Parameters: {} NameError (uninitialized constant FrontControllerController): /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in `const_missing''
2006 Jul 02
5
Pretty URLs -> Routes
Hi I am having issues with getting my pretty urls to work. routes.rb: map.connect '':user'' , :controller => ''front'' , :action => ''list'' , :filter => ''user'' front_controller.rb: def list @advert_pages, @adverts = paginate :adverts, :per_page => 10 @user =
2006 Apr 02
5
Showing current user''s information and saving
Hi, I am logging users in and keeping them in session. The problem I am having is showing only a certain logged in user''s information. In the Adverts_Controler: def show @advert = Advert.find(params[:id]) end I am also having issues with saving an advert for an user: def create @advert = Advert.new(params[:advert]) if @advert.save flash[:notice] = ''Advert