search for: viahttp

Displaying 20 results from an estimated 1192 matches for "viahttp".

2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi: I am using authlogic, and following railscast tutorial. I am running into this error code with the password confirmation. authlogic password confirmation is too short Has anyone experienced this error? I need your help. Thanks in advance for your help.
2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but keep send the e-mail by hour. I don''t know what to do to send daily. Could somebody help me? thanks ############ # mailer.rb ############### #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) +
2009 Mar 12
5
InvalidAuthenticityToken from home page
I''m trying to create a log in in index.html, but I keep getting an error about InvalidAuthenticityToken. I understand this is something that RoR puts in the forms, and it changes regularly. The problem is that the home page in the public folder is html, and therefore static. has anyone else put a log in on their home page? -- Posted via http://www.ruby-forum.com/.
2009 Aug 25
5
uninitialized constant
API-> hello_message_api.rb. class HelloMessageApi < ActionWebService::API::Base api_method :hello_message, :expects => [{:firstname=>:string}, {:lastname=>:string}], :returns => [:string] end controller -> class HelloMessageController < ApplicationController web_service_api HelloMessageApi web_service_dispatching_mode :direct wsdl_service_name
2009 Aug 15
10
** PLEASE HELP A NEWBIE ** Status: 500 Internal Server Error no such file to load -- mysql
Hello All, I have managed to upgrade ruby to 1.8.7. However, when I use Terminal and ''cd'' to the app and run ''ruby script/ server'' ... I get an error when i click the link ''about your applications environment''. When I look into Terminal, it suggests Status: 500 Internal Server Error no such file to load -- mysql How do I overcome this?
2008 Aug 27
6
Restful routes
Hi, I''m pretty new to the concept of restful routing and am struggling to find any rails 2 info that helps with what I''m looking for. I have a regular scaffold setup and the routes are setup as default map.resources :pages I would like to be able to use titles in the url rather than relying on the id. Eg localhost:3000/pages/sometitle instead of just localhost:3000/pages/1
2009 Apr 22
4
help with exceptions
Hello, I was trying to to write a simple ruby program for exceptions. My code is: class ABC begin alpha = ABC.new alpha.foo= [1,2,3] puts foo.inspect.to_s NonExisting raise "all other exceptions" rescue Exception => NoMethodError puts ''Hello'' puts $ERROR_INFO.inspect rescue Exception => NameError puts ''goodbye'' puts $ERROR_INFO.inspect else
2009 Mar 25
6
Hash with key and value from ActiveRecord?
Heya, I think I have thinking barrier. I just want a simple hash out of an ActiveRecord. @attributes = Attribute.find_all_by_character_id(@character).hash { |u| [u.name, u.value] } and I would like to access it like @attributes[:health] but it doesn''t work. Anyone can help me out with that? -- Posted via http://www.ruby-forum.com/.
2007 May 15
4
Way to mark record as main?
I was curious if there was a built in feature in ActiveRecord or a plugin, but I basically have a database for phone numbers. I want a user to be able to make a phone number as main. There can only be one phone number marked as main at all times. Is there something for this? Thanks for your help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2009 Apr 29
7
problem with nil.user
Hi all, I''ve put new code into my app so that an administrator will have extra privileges (administer users, edit pages). The error is: ''Couldn''t find User without an ID'' So the app is looking for a logged in user when the homepage is accessed. Heres my code: site/index view: <% if is_logged_in? and logged_in_user.has_role?(''Moderator'')
2008 Jun 15
11
Ouch! Can't figure out this file upload issue...
Okay, so this is driving me crazy. I''m trying to do a file upload using code from a book. What happens: I get wrong number of arguments (1 for 0) in the upload controller save action. No idea why. Schema: The schema for the picture model object is just a textfield named comments and a binary field called data. Upload controller: def get @picture =Picture.new end def save
2009 Feb 21
3
belongs_to or has_many
2 tables Items and Categories Categories (id, name) Items (id, name, category_id) Category_id can be null, and there are Categories that has not an Item. -- 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
2009 Nov 14
4
how to login in spree
any one cn tell me how i cn login in spree when i click on login button it redirects t0 https://localhost/login -- Posted via http://www.ruby-forum.com/.
2007 Oct 15
6
Form with two buttons
Hi, I need to make a form with two buttons. But I do wrong. And why not can be. form: ------------------------------- <%= form_tag :controller => ''establishment_contents'', :action => ''llamada'', :opMenu => opcionMenu %> [...] <%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %> [...] <%=
2009 Aug 28
5
Finding data which, when tweaked, matches.
Say I have a string : "012345678". I have a column in a table which also stores strings. I want to find all rows which match that string of numbers in that order. That is, "012345678" will match, but "012-34-5678" will, and "012sneeze345bless67you8thanks" also will. Do I have to do something like: ThisIsMyString = "012345678" fits =
2007 Oct 03
6
problem with database.yml
Hi all! I am completely new to RoR and I have runned into a problem. I have followed an online course for RoR on Lynda.com and everything has worked out well until I should change to database.yml file. Instead of the tutors text "host: localhost" I get "socket: /tmp/ mysql.sock" in development enviroment I thought I would give it a try to continue anyway but when I later try
2009 Apr 21
12
still cannot install rails on windows
if i follow the instructions on: http://agilo.us/2009/03/15/rails-on-windows/ the command gem install sqlite3-ruby will give --------------------------------- Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb checking for fdatasync() in rt.lib... no checking for
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
So thanks to Craig, i got up and running on rails 2.2.2, though now i''m dealing with a whole new can of worms. I''ve done a good bit o searching and haven''t found any solid leads. I''m using the simple_captcha plugin on my site, and all is well until i call that plugin. http://www.pastie.org/347721 ActionView::TemplateError (undefined method
2009 May 04
5
moving a project from windows to linux
How easy is it to do this. Is it simply a case of copying the project directory over to the linux directory or does one have to create a new project in the linux system and copy paste (due to the wonders of rails magic)??? -- Posted via http://www.ruby-forum.com/.
2008 Nov 13
5
Touch an ActiveRecord - timestamps
When I update an ActiveRecord, i would like to "touch" one of the related objects, that the updated record belongs_to, in order to update the timestamps on the parent record, although i don''t want to change any of the data in the parent. Whats the accepted way to do this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You