Actually I have the Simply Rails 2 book and the Restful_Authentication
plugin installed on my app in addition to the open-id.
The problem is adding the unique voting. I'll take a look at adding an
extra field.
On Oct 22, 9:59 am, Robert Walker [EMAIL PROTECTED]
wrote:
You should also keep in
Hi
I was looking through my logs and I found that the password field in
rails does not get encrypted. It is sent not encrypted from the
browser. Is there anyway that I can encrypt the password field so if
some one intercept the packets he will not be able to read the
passwords
Frederick Cheung wrote:
On 22 Oct 2008, at 14:20, Joshua Muheim wrote:
That's normal. ActionMailer classes don't inherit from
ApplicationController so it is normal that the methods in there do not
magically appear in ActionMailer instances/views.
Fred
Thanks for your reply. But this
The best way is to simply use https. Definitely DONT use javascript
for encrypting the password (unless you encrypt it again on the
server).
To remove passwords from your logs use this option in your Application
controller
filter_parameter_logging :password
HTH
Shuaib85 wrote:
Hi
I was
It's time for me to go to bed... but perhaps I'll wake up to a bit of
good advice.
I have 3 tables:
registrations
cars
motorcycles
I am trying to define the registration object in this way:
has_many :cars
has_many :motorcycles
Then for the cars and motorcycles I'm saying
belongs_to
The following two line code creates the issue:
factory =
SOAP::WSDLDriverFactory.new(http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl;)
soap = factory.create_rpc_driver
The error message is:
part: requestParams cannot be resolved
RAILS_ROOT: E:/Pavo/csat
Application Trace |
On Thu, Oct 23, 2008 at 10:29 AM, daociyiyou [EMAIL PROTECTED] wrote:
how to exit from the rails irb command line? ctr+c not work for this.
use exit or quit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
Hi,
I have some problems with rails and the oracle_enhanced adapter.
My rails application is working but not my rake task. It doesn't find
the oracle_enhanced adapter.
Please install the oracle_enhanced adapter: `gem install
activerecord-oracle_enhanced-adapter` (no such file to load --
Hi,
I need to parse an rss feed for a podcast. I get this error 'prefix
itunes doesn't associate uri in tag image' when I use the
following:
--controller-
def podcasts
require 'rss'
require 'open-uri'
@uffeed = RSS::Parser.parse(
Hi,
My app has a feature to import contacts from gmail,yahoo and hotmail. I
am using CONTACTS gem to achieve that. The functionality is working
fine, I can import many contacts in bulk. I also have a invite your
contacts feature as well. Issue arises here: Quite a few of the invite
mails fail
hmmm, you don't give enough information.
What's the registration about?
Is this for some kind of car rental service?
The way you describe it, a car could only belong to a single
registration.
Another thing missing is the customer who makes the registration.
If it's like a car rental, then the
Shuaib85 wrote:
Hi
I was looking through my logs and I found that the password field in
rails does not get encrypted. It is sent not encrypted from the
browser. Is there anyway that I can encrypt the password field so if
some one intercept the packets he will not be able to read the
Try modifying your environment.rb to include the following
===
...
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those
specified here.
# ...
# start narayan
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
Hi-
I'm trying to load the blackbook gem. I had it working at one point
and don't recall how I broke it. Anyway, right now, I can load it in
irb and I get 'true' (success). The app dies, however and I get this
in the log:
MissingSourceFile (no such file to load -- blackbook):
I am supposed to develop an application for a client that retrieves
text messages from three different GSM Network providers. I am a
newbie and looking for any knowledge concerning this area. Information
concerning server technology, suggestions of any sort would be
helpful. Materials or sample
OK I have uninstalled oracle_enhancer 1.1.8 and it's working again.
Seems to
be a bug in the 1.1.8 gem.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Very nice tool, I didn't know firebug.
I think I've found the reason of the problem: When you update fields
of a form, they forget to which form_tag they belong. (Why do we need
a form_tag for these select_tags, as they are only used for setting
other fields by onchange?)
Updating another
I think it would be rather more helpful if you posted your code rather
than something that is more or less your code. The devil can be in the
details (random hint - watch out for files with screwed up line endings)
The only thing I left out was additional attributes that aren't related
to
Hi All,
Sorry. Mea culpa. Another stupid error: I had the name:type syntax
backwards. After I straightened that out everywhere, I:
1. ran the first migration alone -- ran OK
2. created the second migration
3. ran the second migration -- ran OK
BTW, I added , :force = true in the second
Hi,
I have just started using Ruby on Rails with cPanel. I can set up my
application ok but I am having problems with linking the application
with a mysql database.
I have run ruby sctipt/generate model and created the table through the
migration. The table appears in the database correctly.
Hi
I am referring to the login page of the users. I noticed that the
password travels unencrypted. So, I wanted to encrypt it on the user
side
any other ways beside https and javascript?
thanks
On Oct 23, 5:57 pm, Andrew Porter [EMAIL PROTECTED] wrote:
Shuaib85 wrote:
Hi
I was looking
Hi,
I got i.e. Ticket and TicketChange models and would like to create
TicketChange object whenever Ticket object is updated.
Currently I'm creating new TicketChange in Ticket#after_update
callback and simply serialize slightly modified ticket.changes hash.
Ticket can be updated using 2 ways -
Thanks for the answer, but I needed a way to clear the cache after
the cached object was updated.
Finally made it like this:
class NewsletterMailer
def self.style
@@style ||= fetch_style
end
def self.reload_style
@@style = fetch_style
end
end
and I'm calling
You shouldn't have to worry about that. In this code:
Product.transaction do
@product.save! #-- this saves the product, retrieving the
db-assigned ID
@details.product = @product #-- this writes @product.id to
@details.product_id
@details.save! #-- this saves
1. You don't need the form tag if you are only updating by ajax.
Html purists might argue the point!
2. You can use any element to update from a partial. For example,
give the tr an id as in:
tr id='update_me'
then in the controller,
page.replace_html :update_me etc.
3. Sometime I
OK. If you are that far along. Then you may want to create a votes
table something similar to as I show below:
votes:
id - int - created by rails in migrations
question_id, even_id, ... whatever you are trying to track a user vote
on
user_id - foreign key from your users table
voted_on - if
The standard way to do is using HTTPS as noted above. If you use
javascript or something similar on the client side (browser side) then
you are just adding on unnecessary work.
Bharat
On Oct 23, 8:15 am, Shuaib85 [EMAIL PROTECTED] wrote:
Hi
I am referring to the login page of the users. I
Hassan Schroeder wrote:
On Sat, Oct 18, 2008 at 12:24 AM, Pallavi Gawas
[EMAIL PROTECTED] wrote:
I have been trying to connect to a secured link(https) which is
pointing to a wsdl file. I am using SOAP4R for this. But it is giving me
an exception which says hostname was not match with
Hi there.
I had absolutely no problems.
I just installed exactly what I had running on the 32bit version all
went smoothly.
rgds.
- matt.
Christoph Thommen wrote:
Hi all
I've got my development-environment on a vista Notebook. Now I'd like
to switch to 64bit Vista because of the bad
Hi
i'm expriencing a weird bug with the restful authentication plugin:
when a user is logged-in and closed the browser then reopen it the
page will loop with a redirect
my only temp solution is to clear the cookies and autheticated session
the reload
here's my session controller:
Hi
i'm expriencing a weird bug with the restful authentication plugin:
when a user is logged-in and closed the browser then reopen it the
page will loop with a redirect
my only temp solution is to clear the cookies and autheticated session
the reload
here's my session controller:
Since the after_update is declared in your Ticket model, you should be able
to access the params hash from the method. For example
class Ticket ActiveRecord::Base
...
after_update :record_changes
...
private
...
def record_changes
TicketChange.create!(params[:comment],
Frederick Cheung wrote:
Forward.new(attributes) boils down to:
- create a blank instance
- attributes.each {|k,v| object.send(#{k}=,v)
hashes are unordered so you can't rely on domain being set before
destination is.
Ok, so I need to take care of this afterwards. Any comments on below
It sounds like your app is relying on the gems installed on the production
server. Instead, you should consider bundling your gems with your app. Good
coverage of gem dependencies is here [
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies]
and here [
hi
i am using the restful-authentication plugin and I can send a reset/
activation emails to any email but the main domain i'm on.
i am using :smtp in my mailer intiialzer and my gmail account info ( i
thought the problem was with send mail at first)
what could be the cause of that
Ami
I haven't faced such a problem before. Are you able to visit that URL in
your browser and see the WSDL? If you can, then at least you know that the
URL is good and that the problem is in your code or the soap4r library.
Regards,
Craig
--~--~-~--~~~---~--~~
You
Without the form_tag, everything's fine with IE 7.0. But with firefox
3.0.3, I don't even get a request. (javascript completely enabled)
table cellpadding=10
tr id='test'
%= render :partial = 'test' %
/tr
/table
_test.html.erb:
td
%= select_tag :select_number,
Hi,
When i try to update or install the gems, nothing happens. It look like
this i my console:
Updating installed gems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed
Someone suggestions?
Grtz..remco
--
Posted via http://www.ruby-forum.com/.
Hi friends,
We have JUST started with Ruby/Rails...
and we are very much impressed with the scaffold generator which gets
us kick-started by creating even the DB-Schema Migration scripts fer
us, which is DB agnostic..!!
But then, me my friends began wondering...
-- WHAT if we had ALREADY
Suppose I have two models:
class A ActiveRecord::Base
has_many :bs
end
class B ActiveRecord::Base
belongs_to :a
end
Now, if I say in a controller
b1 = @a.build(params[:b])
I can build a new B associated to an A.
If the @ is also new, I need to also do this
b1.a = @a
but if the @a is
Hello all,
I have searched this group and the internet for examples of mass
emailing in ror apps. I haven't found a lot.
http://www.myowndb.com/blog/?p=20
I am wondering if anyone could tell me how they made there mailer. Or
even let me know if you know of some way better to send out mass
in application.rb
comment helper :all and run again.
Like this:
class ApplicationController ActionController::Base
#helper :all # include all helpers, all the time
end
On 10月8日, 上午5時51分, comopasta Gr [EMAIL PROTECTED]
wrote:
Hi,
I'm getting the next error:
The name 'Admin::UsersHelper'
Hi,
I have a usecase of calling an Autocompleter.Local when a special
character is typed in the textarea. The autocompleter will suggest a
drop down matching the characters that user typed after the special
character and lets the user pick from the list to fill it.
Here is what I have done,
Team,
While installing Rails 2.1.1 unde Suse Linux, I came across an error
msg telling me that I need this library, libopenssl-ruby.
I am running LINUX Suse: 2.6.16.21-0.8-smp.
ruby -v
ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]
I performed a google search and the results was to get
On Oct 23, 2:58 am, Joshua Muheim [EMAIL PROTECTED]
wrote:
Frederick Cheung wrote:
On 22 Oct 2008, at 14:20, Joshua Muheim wrote:
That's normal. ActionMailer classes don't inherit from
ApplicationController so it is normal that the methods in there do not
magically appear in
I know very little about SUSE, but could this thread be helpful?
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01833.html
Yes, it's about capistrano, but it involves making SSL work w/ Ruby on SUSE.
Regards,
Craig
--~--~-~--~~~---~--~~
You received this
I hate to bump and annoy, but can anyone offer a suggestion on my last
reply?
Thanks!
-Tony
--
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
Unless you provide the parameters to the model, any callbacks will be
unable to see them. (assuming that you're talking about the parameters
from a form post?)
On Thu, Oct 23, 2008 at 5:23 AM, szimek [EMAIL PROTECTED] wrote:
Hi,
I got i.e. Ticket and TicketChange models and would like to
On Oct 23, 11:39 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Team,
While installing Rails 2.1.1 unde Suse Linux, I came across an error
msg telling me that I need this library, libopenssl-ruby.
I am running LINUX Suse: 2.6.16.21-0.8-smp.
ruby -v
ruby 1.8.6 (2008-08-08 patchlevel
Hi y'all,
I've got just one final problem: my CRUD offers functionality only for
the field I listed in my scaffolding. Despite the fact that I created
and successfully executed an addition fixture, none of those fields is
included in the CRUD.
The only way I can think of to generate CRUD for
Heinz,
You should really take a look at this:
http://www.railsdev.ws/blog/3/modular-page-assembly-in-rails/
Cheers, Sazima
On Oct 22, 1:35 pm, Heinz Strunk [EMAIL PROTECTED]
wrote:
Hello,
I'm having a problem which is following:
div id=headerimg .../div
div id=navigation[STUFF FROM THE
I would think partials would serve you (laying out vars populated in the
appropriate controller).
Have you looked at those at all?
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Christo Karlson
Sent: Wednesday, October 22, 2008 3:10
On Oct 23, 10:37 pm, deepFritz [EMAIL PROTECTED] wrote:
Hi friends,
We have JUST started with Ruby/Rails...
and we are very much impressed with the scaffold generator which gets
us kick-started by creating even the DB-Schema Migration scripts fer
us, which is DB agnostic..!!
But then,
Your models don't have direct access to params unless you explicitly
pass them to the model. This would violate the MVC pattern otherwise.
Robby
On Thu, Oct 23, 2008 at 6:17 AM, Craig Demyanovich
[EMAIL PROTECTED] wrote:
Since the after_update is declared in your Ticket model, you should be
Ah, so you've got a grandchild object (sector). I just had a parent one
child. I bet you are close. Try this:
@news_items = NewsItem.find(:all, :order = order_by, :include = ['stock',
'sector'])
and in the view:
th%= sort_link('Sector Name', 'sectors.name') %/th
(So--singular forms
Hi, I'm trying to make a scaffold for my test application using
PostgreSQL 8.3 database. and I remembered on an article for MySQL it
uses :string for VARCHAR, :integer for INT, and :text for TINYTEXT,
TEXT, MEDIUMTEXT, or LONGTEXT2.
Is there any datatype equivalent with PostgreSQL?
My database
D'oh. I should more carefully reply to posts after just waking up. I don't
know how I mixed controllers and models this morning. Time to enjoy the MVC
public service announcements http://www.railsenvy.com/tags/MVC again.
Sorry for the confusion everyone.
Craig
On Thu, Oct 23, 2008 at 12:13 AM, DyingToLearn [EMAIL PROTECTED] wrote:
The best way is to simply use https. Definitely DONT use javascript
for encrypting the password (unless you encrypt it again on the
server).
To remove passwords from your logs use this option in your Application
try executing following
seems like your table is empty
try follwoing
open command window.. goto your project directory.. run console..
./script/console
they try Team.find(:all) and see if it returns anything.. it will tell
you if there is any data in teams table.
let me know
Ajit
On Oct 23,
you must have some kind of authentication system in Rails app.
so after comparing posted values..
if user exists then redirect_to home/index [home is controller and
index action for rails app]
else
redirect_to http://abc.com/login.php;
let me know
Ajit
On Oct 23, 7:27 am, Sijo Kg [EMAIL
First of all, thank you for replying. When I use your suggestion I get
an application fails to start error. I narrowed it down to one thing
though. What causes the fails to start error is the smtp in the
config.action_mailer.smtp_settings = { line in
/config/environment.rb. If I use server
Hi guys. I'm experiencing some strange behaviour in my Rails app. I
have a constant, and two class methods:
#--#
COORDINATES_NOT_NULL_SQL =
'latitude IS NOT NULL and longitude IS NOT NULL'
def self.sql_for_non_null_coordinates
COORDINATES_NOT_NULL_SQL
end
def
The Hartford Ruby Group is meeting this Monday, 10/27, at 6:00 PM.
We'll be tackling a Ruby Quiz problem, pairing up newcomers with veterans.
We'll be raffling off a copy of Design Patterns in Ruby, by Russ Olsen
On Oct 23, 9:23 am, Craig Demyanovich [EMAIL PROTECTED]
wrote:
It sounds like your app is relying on the gems installed on the production
server. Instead, you should consider bundling your gems with your app. Good
ahh, so there's more to it than just the $GEM_PATH and $GEM_HOME env
vars?
Hi all
I'm getting an error when running rake db:migrate :-
rake aborted!
uninitialized constant PKG_NAME
I'm not sure what PKG_NAME is refering to, has anyone else had this
same issue or does anyone have an idea what could be causing this?
Hope someone can help.
Many thanks
KK
I am trying to create an expanding/collapsing table to navigate nested
resources. To do this I have opted to use set of nested lists and I
am formatting them to look like a table using CSS. A row looks like
this...
ul id=property_Product Line class=showing dark row
style=display: none
On Thu, Oct 23, 2008 at 10:35 PM, Nick [EMAIL PROTECTED] wrote:
Hi guys. I'm experiencing some strange behaviour in my Rails app. I
have a constant, and two class methods:
#--#
COORDINATES_NOT_NULL_SQL =
'latitude IS NOT NULL and longitude IS NOT NULL'
def
Yes I tested quite a bit with different renders and partials. What I
remembered was that it couldn't asked the variables declared before the
render-statement. i.e. when you start rendering the subtemplate all the
variables from the main template are forgotten.
Of course one solution is to
hmmm, you don't give enough information.
What's the registration about?
Is this for some kind of car rental service?
I sure didn't. 3:30am was late for me. :)
It is a warranty registration where many different products need to be
registered. Each product shares some of the same
Shagy Moe wrote:
I've got some code that more or less looks like this:
class Project ActiveRecord::Base
def create_new_document
document = Document.new
document.attributes = { project_id = self.id,
attribute2 = etc...}
if document.save
Yikes. Good luck with that. ;)
The only thing that comes to my mind is the :locals hash you can pass in a call
to render :partial. But it'd probably be as much of a pain to figure out how
to have your transliterator make those calls as it would be to have it put
variable creation code in
Hello,
On all of my Rails 2.1.2 projects (released today), whenever I try to
generate anything, I get the result undefined method `empty?' for
/_generator$/:Regexp.
Example:
mbp15:~ rails -v
Rails 2.1.2
mbp15:~ rails ./example
create
...
...
mbp15:~ cd example
Installed the latest version of Ruby Enterprise Edition (though normal
Ruby would probably work too) and everything is fine now.
I think I had a patched version leftover from a security issue that
arose earlier this summer, and the latest version of Rails didn't like
it so much.
Cheers,
Take a look...
http://d.imagehost.org/0966/dbconsole_image.png
http://d.imagehost.org/0709/console_image.png
How to solve this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
That is only true for rails gems. Other gems may conflict.
Have you resolved the issue?
On Tue, Oct 21, 2008 at 10:19 PM, JHuizingh [EMAIL PROTECTED] wrote:
The original machine has
hpricot-0.6.161
mechanize-0.8.3
and 2.1.0 of all the rails related gems.
The new machine does not have
Update the rubygems :
gem update --system
On Fri, Oct 24, 2008 at 3:10 AM, Jason Crystal
[EMAIL PROTECTED] wrote:
Hello,
On all of my Rails 2.1.2 projects (released today), whenever I try to
generate anything, I get the result undefined method `empty?' for
/_generator$/:Regexp.
Example:
Hi,
Yep the data is shown which I had entered into the table, through the
migration.
Hope you can help,
Thanks a lot!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Scaffolding is really only a learning tool or a way to jump start ...
Understood. Still, in development mode, it would be nice to have the
Rails 1.x functionality still working. But I'll grudgingly accept the
judgment of the Rails Masters :-)
http://activescaffold.com/
That's very helpful
I'm having the same problem. I'm on a Gentoo box with Ruby 1.8.6 and
all the latest patches. Pratik's suggestion did nothing (actually my
rubygems was already up-to-date).
I'm downgrading to 2.1.1 if no quick solution comes up soon.
On Thu, Oct 23, 2008 at 9:30 PM, Pratik [EMAIL PROTECTED]
I'm wondering how to go about setting up an app to allow data
collection offline that is later sync'd to the master db...
I picture the data collection being done on a PDA or something similar
and then docked and uploaded to the master online db, are there
plugins that handle this?
Any ideas or
BTW, Google already indexed this:
http://rails.lighthouseapp.com/projects/8994/tickets/1259-bug-in-edge-rails
Thought I might post it here in case someone finds a solution and
posts it over there.
On Thu, Oct 23, 2008 at 10:03 PM, Pilaf [EMAIL PROTECTED] wrote:
I'm having the same problem.
Rake produces the error:
undefined method `smtp_settings=' for ActionMailer::Base:Class
How do I define that method? Do I put it in environment.rb?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
I am getting some error which I am clue less. I try to pass more than
one parameter with redirect_to, For example,
My params are...
search = {name=, bus_group=1, region=, unapproved=,
tech_owner=}
And I try to give.
redirect_to params[:search].merge! (:action = 'list')
After executing
Hi All,
I've got a basic Rails app started. One wrinkle is that the user
wants ideally to be able to browse the files system (a la Windows
Explorer) to select a file and initiate the importation of data from
the file.
All files selected will be of a predetermined fixed format, e.g. CSV
with
On Oct 23, 2008, at 7:04 PM, Delirium tremens wrote:
Take a look...
http://d.imagehost.org/0966/dbconsole_image.png
http://d.imagehost.org/0709/console_image.png
How to solve this problem?
Well, stop trying to use a Rails console when you mean to be talking
directly to your database.
Is there any other solution to solve this situation??
Selva Raj wrote:
Hi,
My params are...
search = {name=, bus_group=1, region=, unapproved=,
tech_owner=}
redirect_to params[:search].merge! (:action = 'list')
{bus_group=nil, name=, amp;region=nil, amp;tech_owner=nil,
region=, amp=,
A Google search for
rails import csv
returns several promising results.
Regards,
Craig
--~--~-~--~~~---~--~~
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
I have a ext.GroupingView grid that paginates, filters, and obviously groups.
The combination of these options is both awesome and beyond the scope
of this discussion.
The problem is, the params request when a user wants a new set of
results is something that bears no resemblance to the
I am also facing the same problem. When I visited the URL in my browser
I could see the WSDL. But when I tried in application I was getting the
same error.
When I explored the cause of the error, I could find that the problem is
with the encoding style. I am getting teh WSDL::Part type as
89 matches
Mail list logo