similar to: learning how models, controllers, and views pass data

Displaying 20 results from an estimated 300 matches similar to: "learning how models, controllers, and views pass data"

2005 Dec 17
13
Rookie with ActionMailer
To start out I''ll say that this is the first thing that I''ve ever built that''s been intended to programmatically send email. I''m looking at examples in AWR and also on the wiki. I feel that I sort of have things set up right but I''m getting an error I can''t grok: Net::SMTPFatalError in Home#email_list 550 5.7.1 Unable to relay for
2005 Dec 02
3
yaml Error When Trying to Generate Scaffold
Hello there, I am a Ruby on Rails newbie, and have been reading the book, "Agile Web Development with Rails", by Dave Thomas. Seem to be stuck on page 57, when trying to invoke "ruby script/ generate scaffold Product Admin"... My depot/config/database.yml file''s contents are: development: adapter: mysql database: depot_development socket:
2008 Feb 24
1
available on the market.
Dye DMC: Dye has some of the most expensive paintball markers with price starting from $700. used paintball markers (http://hosting.freeserverweb.com/paintball-markers/used-paintball-markers.html)
2009 Apr 09
1
Mailing error in Rails 2.3.2
Hi, My mails were working with the earlier version of rails ie. Rails 2.0.2. But recently when i upgraded my environment to 2.3.2 the mails stopped working and gave "Error: End of file reached". But if i send mails independent of my rails app the mailing code works fine. My Environment: Windows Xp Ruby 1.8.7 actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource
2007 Dec 29
0
should send_email always succeeds?
I wrote the following in my spec: emails = ActionMailer::Base.deliveries emails.length.should eql(2) response.should send_email { with_tag(''tr'', @contact_info[:full_name]) } knowing that 1) an email is being sent; and 2) the contact info is in a ''p'' tag and only in a ''p'' tag. The length expectation is met --
2007 Feb 20
6
How to spec code with multiple (interacting) paths
Hi Code with a large number of different paths is probably the biggest problem I have right now. I''ve made a sample class that illustrates the simplest case of one parameter that takes two values: class DataStorer def initialize(logger, emailer, db_updater, do_update_db_step) @logger = logger; @emailer = emailer; @db_updater = db_updater
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone, Like so many other here, I too am new to Rails (and Ruby), and so far it''s been a great experience. I haven''t been able to get around one problem though. When trying to use the mailer, I recieve an error like this: ActionView::ActionViewError in Tell_friend#send_email No rhtml, rxml, or delegate template found for send_to_friend The scenario is this: A form on
2008 Dec 04
3
The RSpec way of doing this? Need help on validating block
Hello, I''m back again with more questions about mocks and how to do good testing in general. Let''s say I''m writing this EmailSender class and I want to make it totally awesomely tested with RSpec. Here''s how far I''ve gotten so far: require ''net/smtp'' class EmailSender def send_email
2007 Dec 13
1
session.send_notification for emails
Hey All, I am wondering if anyone has done any work around sending emails through the API. It looks like facebooker is using part of a deprecated API, Notifications.send used to take an email part. They now have a Notifications.sendEmail call which will take recipients, subject, text part and fbml part. Looking at the code it seems like I need to add a method to the session
2006 Apr 21
1
Question on Active Mailer
Hi I want to create send emails to users as soon as a product is created; So I created scaffold for Product and before as soon as I do the save I call my send_email method in another controller; Now I want to pass on the Product record we created. I tried sending the product as @product, :product,etc. (tried all) and none work; my idea is to get the product record and put it in the email
2016 Sep 26
0
FLAC standardization in the IETF
Hi all, I'm writing in my capacity as co-chair of the CELLAR working group of the IETF, which is tasked with the standardization of the FLAC specification. I posted about the initial creation of the working group in 2015, and I am wondering if any of the developers on this list are also subscribed to the IETF CELLAR list ( https://mailarchive.ietf.org/arch/search/?email_list=cellar). At the
2008 Dec 23
1
All steam games produce choppy and echoed sound
I recently switched over to ubuntu 8.10 and am new to wine, searched and couldn't find an answer. I have not touched any of the sound settings on the computer- and only installed ubuntu about two days ago, so I haven't been able to fool around too much with it to change much. I installed wine and from there steam. When playing different steam games I installed, my sound is distorted, it
2006 Oct 17
3
action mailer, error Subject: Header must not be multiple
i want to send multiple emails: #my Controller def send_email if params[:group_ids] groups = Group.find(params[:group_ids]) # creates an array called ''groups'' that looks like : [{:id => 1, :title => ''yediot''}, {:id => 2, :title => ''maariv''} ] --- [ 1, 2 ] else groups = [] end names = [] emails = []
2008 Mar 17
2
Dynamic actions and views
Hi, I have a set of messages stored in the db. These are email messages that I have to send based on some condition. This is not the way I had been doing all these days. I used to create an action in my controller (class Notifier < ActionMailer::ARMailer) and then create an rhtml file with the email content and then say Notifier::deliver_my_email_message to send out the emails. But now that I
2007 Dec 11
1
501 Syntax: HELO hostname - Mail problem
Hello... I am encountering a problem sending emails from Windows using an extermal smtp server. When attempting to send out the email, the following error is returned: 501 Syntax: HELO hostname I have checked the format of the emails, and they are ok. It seems it''s choking right at the begging of the connection to the smtp server, when my computer needs to identify itself by sending
2014 Jun 02
2
list all emails from command line?
This is not strictly Dovecot question, but a more general IMAP one. I'm running a Dovecot server and have a user who is claiming that some email sent to him, say, on 30 May, showed up in his mailbox on 02 Jun. I've checked Postfix logs, and the message was correctly received on 30 May and passed to Dovecot. A similar issue happens every few days. This leaves me with two possibilities:
2008 Jun 04
8
Accessing Params Hash form Action Mailer Model
I have used Action Mailer to collect data from a form and send it to a recipient. Rather than hard-code things like the subject, recipients, and return address into the model, I would like to include that information in hidden fields in my form thereby causing that information to be included in the params hash. My question is: How can I access that information from the params hash in the model?
2013 Mar 20
2
Rspec + Devise + BaseController
Hello there, I''m creating a base controller for the admin section of a project. All controllers whitin the admin section will inherit from it. ##################################################### #app/controllers/admins/base_controller.rb class Admins::BaseController < ApplicationController layout "admin_cms" before_filter :authenticate_admin! end
2010 Oct 17
1
rgdal package (Matteo Toro)
>Hi everybody, > >I'm trying to install the "rgdal" package in R, but it seems not possible... > >i'm typing > >> install.packages("rgdal") >Warning in install.packages("rgdal") : > argument 'lib' is missing: using '/home/toro/R/i486-pc-linux-gnu-library/2. >9' >--- Please select a CRAN mirror for use in
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys, Facing a weird error . Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) It seems to be happening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :*