Displaying 20 results from an estimated 200 matches similar to: "Route for any image?"
2006 Jul 30
1
FileColumn - Validate Before Saving
file_column is great -- but I need a way to run through the validations
(ie: validates_file_format_of) before saving. That is, when a user first
uploads an image it is displayed in the view but not ''saved'' until they
click the ''Save'' button on the form. I want to display an error
message/disable the ''Save'' button if the file they just
2006 Mar 19
1
Rails and REST Example
Does anyone have an example of using REST and submitting data through
a POST operation and then possibly loading that data with
activerecord.
Also, if you have client code written in another language (java,.net,
C), would you have that code as well?
Berlin Brown
2008 Mar 14
14
Facebooker MQ now on RubyForge
I don''t know if anyone is using this but I just fixed a bunch of bugs, some
big ones, and moved this project to RubyForge SVN servers.
So you can get it here now:
script/plugin install
http://facebooker-mq.rubyforge.org/svn/trunk/facebooker-mq/
This is working great for me on a couple of projects.
Here is the README
Updated: 3/14/2008
Purpose:
The purpose of FacebookerMQ is to
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey,
I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the
live outside app/controllers. I was on 1.1.2 previously and here is my
setup
In environment.rb
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/controllers") ]
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/helpers") ]
2008 Mar 14
8
Facebooker updates
I just went through and cleaned out most of the bugs and patches. I
also added a facebooker.js file that implements enough of prototype to
do $() and link_to_remote with :update and remote_form_for with :update
Let me know if you run into any issues with it.
Mike
--
Mike Mangino
http://www.elevatedrails.com
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given
(ex. in form) url instead of uploading it manualy?
I know:
http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions
require ''open-uri''
Attachment.find_first.filename = open(url)
if not working as expected... what is interesting is that:
>> @a =
2006 Feb 05
2
Where is a good place to update a date field?
I have a field that indicate that a reservation has been cancelled. I want
to update a cancellation_date field with the date that the reservation is
cancelled. I am trying to think of where the best place to do that is?
Any thoughts?
Thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jun 03
2
Order of authentication methods is causing unnecessary call to API?
Hey Guys,
I am wondering if I am missing something here. I am noticing that after a
user installs my app I get a request that not only contains an auth_key but
also contains a valid session key.
Occasionally I am seeing that Facebook server is occasionally sending a
connection reset during the auth key authentication method, this caused me
to notice that secure_with_token is given precedence in
2008 Mar 31
13
request for change in URL pointing to facebook domain
I am requesting that we change the paths that absolutely point to the
facebook URL.
In the PHP client there is a method in the facebook.php file called
get_facebook_url() so this is easy to change there.
One reason for this:
Ringside Networks is a drop in replacement for Facebook that can be
used for localhost development and eventually an abstraction for most
social networks - it mimics the
2006 Feb 13
3
caches_action does not go off the entire URL
I am trying to use caches_action and the agile book says that it is keyed
off the URL, however it does not seem to pick up the URL parameters.
http://localhost:3000/controller/action/id?foo=bar
and
http://localhost:3000/controller/action/id?foo=foobar
Returns the same page.
Anyone looked into how to add URL parameters to the cached key? Also,
where do those file get stored?
Thanks
Dave
2008 Mar 25
7
Facebooker::Session::SessionExpired (Session key invalid or no longer valid)
Hi All,
I''m having horrible problems with this exception, which seems to happen as
soon as I access the session object. Does anyone know what the path is to
recover from this? This post looked to be the most promising:
http://rubyforge.org/pipermail/facebooker-talk/2007-December/000047.html
And I followed all of the steps except switching my session store, and
modifying the default
2008 Jan 11
6
couple of newbie questions about redirects
I''m working on an app, and am new to both ruby and facebooker. Here
is my current area of confusion:
What should happen on a user''s initial visit to my app? When I hit
apps.facebook.com/<my app> for the first time with no cookies or
sessions or anything, I''m asked if I want to log into the app, etc.,
and am then redirected to my callback url outside of facebook.
2006 Mar 22
8
Premature end of script headers: dispatch.cgi
Hi
I am running ruby 1.8.4 and rails 1.0.0 with Apache 2. I made a simple
rails application called demo and also created a controller called say
and an action called hello which is working fine using webrick. To run
it under Apache I created a symlink demo1 which is linked to the
demo/public directory. If I run it using www.example.com/demo1 then I
get the "Rails- Welcome Aboard"
2008 Jan 16
10
Towards a 1.0 release
Hey everybody.
I''ve been using Facebooker on several projects over the last few
months and feel like it is really starting to mature. I''d like to push
towards a 1.0 release within the next month. I''d really like
everybody''s input on what still needs to be done, as well as some help
in wrapping things up. I''ve created a list of things that still
2008 Aug 19
6
redirect with application add
There are groups within our app that people can be invited too. If a user
recieves an invite to a group and hasn''t yet added the application the
filter chain ends up redirecting them to the main canvas page instead of the
the group page directly. Is there a way to handle this if the user hasn''t
installed the app, I tried redirect_back_or_default in one of my controllers
but it
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 Mar 22
1
Can you supress warnings when running rake?
Anyone know how to turn off warnings when running unit tests with rake? I
keep getting a bunch of messages like this:
warning: already initialized constant ALL_CONTENT
Which is a constant in one of my models.
thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/32eb0541/attachment.html
2009 Jan 15
3
Unique URLs for authentication
I''ve set up a route like this
map.connect ''confirm/:id/:full_name/'', :controller => "users", :action
=> "confirm"
and I''m wondering what is the best way to verify in the confirm method.
full_name created in the model and it''s not in the database.
This doesn''t work because it doesn''t parse one, then the
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project
2006 Feb 08
5
Can rails cache a table?
We have a few tables that do not change, unless something big happens which
will only happen when it is time to deploy.
Is there a way to get Rails to cache the contents of these tables? We can''t
just go to config files or not DB models for reasons I won''t get into.
Thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: