Displaying 20 results from an estimated 120 matches similar to: "Variable sizes with paperclip"
2010 Sep 16
3
Resyful authenticatio current_user in model
Hi,
I am using Restful authentication for user authentication.
I want the current logged in user object in my model property.rb
Problem is current_user is not working on model.
How can I fix this I need that?
Please help me out.
Thanks,
Mike
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2009 Jun 11
2
Automatic Calling Feature?
Right now, my organization is using a commercial service (OneCallNow.com),
that gives telephone notifications to all numbers in a predefined list.
Example:
-Admin records a voice message
-Service calls each number in the list, and plays the message back to them
It's a pretty handy service, albeit a bit pricey. I've been wondering if
Asterisk could do this for me? I don't really want
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here
:
http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/
but this deals with filling out forms. Is there a simpler example that
just allows you to talk to itext , send it some plain text and get back
a pdf and then send that pdf to the user as downloadable / renderable
data?
--
Posted via
2009 Oct 26
17
[Bug 1667] New: sshd slow connect with 'UseDNS yes'
https://bugzilla.mindrot.org/show_bug.cgi?id=1667
Summary: sshd slow connect with 'UseDNS yes'
Product: Portable OpenSSH
Version: 5.2p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy:
2009 Sep 03
12
paperclip is not saving the files
Hi all,
I''ve installed paperclips but
paperclip is not saving the files
my model has
has_attached_file :attachment,:styles => { :medium => "300x300>",
:thumb => "100x100>" }
and i have db migration as
class AddAttachmentToPolicies < ActiveRecord::Migration
def self.up
add_column :policies,
2006 Jan 20
11
Userstamp Plugin
I''m pleased to announce a new plugin for Rails: Userstamp. You can read my
blog post at http://www.delynnberry.com/articles/2006/01/20/userstamp-plugin
and/or read all about it at the perminant page
http://www.delynnberry.com/pages/userstamp. Any comments or suggestions for
improvement are much appreciated.
--
DeLynn Berry
delynn@gmail.com
http://www.delynnberry.com
A dump of the Readme
2009 Jun 08
1
MeetMe: Mute All Lines Automatically?
I'm considering implementing an Asterisk PBX for conferencing. Before I get
started, I wanted to make sure that it supports the features that I need.
I plan to use Asterisk as a conference bridge only. I want people to be able
to use my conference to listen live to lectures/etc, without having to
listen to others in the conference.
I'm using the FreePBX web interface, and I can't
2004 Jul 13
2
Swiss IP10S using SIP
Has anyone had success getting the Swiss IP10S and the SIP ( IP10 SP
v0.0.1 (Build 4)) firmware working with Asterisk? If so do you have
copies of what worked in sip.conf and phone configuration files?
I can't seem to get the phone to register, it tries but is denied with
a Forbidden (which I am guessing is authentication). I tried without
a secret, but the phone seems to use swissvoice
2004 Jun 24
1
Pulver's WiSIP with Linksys WAPs
I recently got a Pulver Innovations WiSIP wireless SIP phone to
determine if we want to use them in our organization. Since the WiSIP
phone arrived last week, I have had nothing but headaches. I do think
I now have the problem narrowed down.
I have spent a bulk of my time trying to get the WiSIP to work with a
couple of Linksys WAP11 Version 2.2. I have met with no success in
getting the WiSIP
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year
2006 Apr 01
5
Triple relationship
Hi list,
I need to represent a relationship between three tables:
Tags (id, name)
Users (id, name, email, ... )
Documents (id, title, ... )
I created a forth table called Assignments(id, tag-id, user-id,
document-id, date).
I have couple of questions:
Should I use belongs-to and has-many to capture this? If so, How can I
do that?
should I have the id as the primary key in Assignment table or
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated
current_user in a model?
Is there some sort of include or require I can do some where that would
allow this?
**********************************************************
Here is what I am trying to do:
**********************************************************
class Setting < ActiveRecord::Base
before_create :created_by_user #
2006 Sep 09
13
best way to add "created_by" entries to all tables???
Hi,
I want to automate somewhat the addition of created_by/updated_by fields
on my models (i.e. to include username). What''s the best/recommended
way to do this? Would it be to:
a) Find out how to extend the ActiveRecord::Base itself (I haven''t
extended a class before yet)
b) Use a plugin type approach where you have to add a tag manually to
each model file which then
2007 Jan 31
1
Just copied my app to another puter, and now...
it doesn''t run : (
no matter where i go in my controller, I am getting this error message:
The Browser View:
-----------------
Status: 500 Internal Server Error Content-Type: text/html
Application error
The Log:
------------------------
Processing Base#index (for 127.0.0.1 at 2007-01-31 06:01:31) [GET]
Session ID: 6a380e82bd3afb39dcb57ecfa143766d
Parameters:
2006 Mar 28
8
Correct way to capture a select param
I''m having trouble capturing the params from a select type form.
For text field like this:
<%= text_field_tag :courseid %>
I''m able to capture the posted value with this
params[:courseid]
However with a select field like this:
<%= select(:course, :id, %w{value1 value2 value3} %>
I''m not sure how to capture the posted value.
--
Posted via
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals,
I have the following object that has acts_as_versioned:
class Note < ActiveRecord::Base
acts_as_versioned
belongs_to :user
end
The schema for my notes table is as follows:
create_table :notes, :force => true do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :user_id, :integer
t.column :title, :string
2009 Jul 27
1
Displaying Friends Activity
Hi,
I''m wondering the popular methods to display friends activity on
user''s profile page.
Any docs or tutorial will be helpful. I''m a newbie in RoR
Thanks,
Arun
2016 Mar 10
1
[Mesa-dev] [PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
On Thu, Mar 10, 2016 at 9:14 AM, Hans de Goede <hdegoede at redhat.com> wrote:
> Extend the MEMORY file support to differentiate between global, local
> and shared memory, as well as "input" memory.
>
> "MEMORY[x], INPUT" is intended to access OpenCL kernel parameters, a
> special memory type is added for this, since the actual storage of these
> (e.g.
2023 Aug 16
1
[Bridge] [PATCH net-next v2] netfilter: ebtables: replace zero-length array members
From: "GONG, Ruiqi" <gongruiqi1 at huawei.com>
As suggested by Kees[1], replace the old-style 0-element array members
of multiple structs in ebtables.h with modern C99 flexible array.
[1]: https://lore.kernel.org/all/5E8E0F9C-EE3F-4B0D-B827-DC47397E2A4A at kernel.org/
Link: https://github.com/KSPP/linux/issues/21
Signed-off-by: GONG, Ruiqi <gongruiqi1 at huawei.com>
2006 Aug 26
0
Re: Prag Programmers style PDF personalization
On 22-aug-2006, at 22:26, Austin Ziegler wrote:
> Not really. The Unicode problem for PDF support is wholly unrelated to
> my stance on Unicode vs. m17n Strings. The Unicode problem for PDF
> support is mostly that the PDF standards doc is a stinking pile that
> is almost impossible to understand without your eyes bleeding and even
> harder to implement. ;)
I just