similar to: Pseudo resource routes

Displaying 20 results from an estimated 200 matches similar to: "Pseudo resource routes"

2008 Jan 04
2
Nested Routes + Facebook Resources
Does anyone have nested routes working with the facebook_resources method? My routes.rb has: map.facebook_resources :users do |users| users.facebook_resources :images users.facebook_resources :connections end but user_connections_url won''t generate. "rake routes" gives me: new_user POST /users/new {:action=>"new",
2010 Nov 04
0
Rails routing issue
Within a rails app I''ve got a special url (/profile) that I''m mapping to the user controller to allow a user to view and edit their profile. I made the following entries into my route file so that the "get" for profile will route me to the profile action in the user controller and the "post" for profile will route to the update_profile action in the user
2007 Nov 21
0
Upgrade to latest trunk if you''re getting "undefined method `degree=''"
Facebook added the ''degree'' field to education info. This breaks user.populate because the ''degree'' field doesn''t exist in the education history model. On a side note, if a method calls a dangerous method (ending with !), shouldn''t it be classified as dangerous too? Shane -- http://myfitbuddy.com | http://shanesbrain.net |
2007 Nov 30
0
Rails test helpers
Hey guys- I started a module for Rails test helpers. The first one is assert_fb_redirect. This is like Rails'' assert_redirect, but works for the fb:redirect FBML tag. Any ideas for more? I was thinking about a version of assert_select that works with Facebook. assert_select is based on CSS selectors, which won''t work with Facebook since the use of colons (:) in search
2008 Jan 26
0
New feature: get profile pictures
The profile picture album is treated as a special album by Facebok and is not returned in the normal get photo albums API call. A bunch of special operations have to be performed to get the aid for the profile picture album. I added a method to User to get the profile pics. Use as follows: facebook_session.user.profile_photos # returns Photo objects Enjoy, Shane -- http://myfitbuddy.com |
2008 Jan 30
0
Publish templatized action with JSON gotcha in Rails 1.2
Hey guys- to_json in Rails 1.2 produces json with unquoted keys, which is invalid. Therefore, publish_templatized_action produces invalid json for feed publishing, and you''ll get an error from Facebook. To fix this, put this line in environment.rb: ActiveSupport::JSON.unquote_hash_key_identifiers = false You don''t need to do this if you''re running Rails 2.0. Just a
2008 May 08
0
New test helpers
Hey guys- A few methods useful for testing have been added to trunk: 1) facebook_post For use in controller unit tests and integration tests. Basically, it delegates to the standard "post" method for simulating post requests in a test, but constructs mock fb_sig params and passes them along to the requested action with the rest of the params that the test specifies. 2)
2008 Feb 14
0
New features: Application properties and cookies
Hey guys- Two new features: Set/get app properties like this: properties = { :application_name => "Video Jukebox", :default_fbml => "blah" } facebook_session.admin.set_app_properties(properties) properties = facebook_session.admin.get_app_properties(:application_name, :default_fbml) Set/get cookies: facebook_session.data.set_cookie(uid,
2007 Sep 13
0
Some Vista Info reguarding Profiles
Hi All, I just started really looking into deploying Vista in a Domain Environment and here is some info I gathered so far: With Vista, Microsoft Updated their "profiles" to version 2, thus Vista profiles will not co-exist with previous Windows profiles. To alleviate the need to specify a different profile for Vista, Microsoft decided to automatically add a ".V2" to the
2007 Dec 10
4
facebook_resources method not found
Is anyone else getting this error in their routes, when running Facebooker from a plugin. ./script/../config/../config/routes.rb:67: undefined method `facebook_resources'' for main:Object (NoMethodError) from /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1139:in `draw'' from ./script/../config/../config/routes.rb:1
2007 Nov 30
5
render_to_string in an after filter
I''m using render_to_string in an after_filter, which renders a partial that is sent to a web service. Here''s the code: class MyController < ApplicationController after_filter :post_to_webservice def show # show logic end def post_to_webservice stuff = render_to_string :partial => ''stuff'' webservice_post(stuff) end I get a DoubleRenderError in the
2015 Mar 27
1
Samba 4 join AD by samba
Hi, I have a task which requires AD + windows roaming profiles + automatic backups. I want to use samba 4 AD server (debian jessie) + samba 4 file server for user's home profiles (opensuse 13.1) + zfs for storage backend. The reason why I need 2 servers (actually a server with hosted lxc container) is because opensuse has kerberos mit by default ( samba at lists.samba.org.) I've
2007 Nov 30
0
Tests not passing
There is a catch-all rescue at the bottom of rails_integration_test that stops the tests from running if any of the require statements fail. In my case, require File.dirname(__FILE__)+''/../init'' fails and none of the tests get run. When I comment out that line, there are a couple of failures relating to redirection. Shane -- http://myfitbuddy.com http://shanesbrain.net
2006 Aug 10
2
Authentication: UserEngine or own creation?
Hi all I''m coding a project that needs a lot of authentication stuff... e.g. I write sort of a profile area, where users can create their different profiles. So I need to check if a user has the right to browse the profiles, if he has the right to change them all (as an admin) or the ones that belong to him etc. etc. This needs quite some logic... Now I wonder whether to use the
2007 Feb 08
2
Howto setup printing with Windows XP Clients, Cups and samba..
Hi there, slowly but sure I'm getting absolutely insane with the printer setup on a Samba PDC. I got Cups to work. It works like a charm if someone installs a printer via the cups interface. It also prints in a good quality. On Samba side I even have those "Printers and fax devices" in the visible shares. And if i install CUPS6 Drivers manual on the target system i can even print on
2008 Jan 25
3
More on routing, relative_root and facebooker
Hey there! I would like the discussion to continue on how facebooker handles routes, as it appears that there is an unsolved issue. Mike, I read your recent reply involving setting facebook''s callback_path to the root of the rails app, and adding a route to catch all calls to the app root where canvas => true. I just want to point out this is counterintuitive to some folks and
2007 Nov 17
0
rake errors
Folks, I have a rake task that runs via cron and calls a controller action. I was getting the ''config/boot.rb:28:Warning: require_gem is obsolete'' warning, so I ran rake update:rails. Now I''m getting a whole bunch of errors and the rake task bombs. The traceback on the errors doesn''t seem to make much sense to me. Help? rake task... require
2010 May 27
1
How to pass an Variable to an Partial?!?
Hello, I''m new in Rails and I''m Trying to implement a plattform were authorized people can apply Profiles to a special topic. The profil can be identified by the ID and the title in the data base. So in the view/profil/show_profil.html.erb the infomation of one Profil are perfektly shown. My problem: I have an data base table called : "comment" in which I save comments
2007 Dec 05
7
Better RESTful routes with fb_sig_request_method
With the new fb_sig_request_method provided by Facebook, I''ve patched shanev''s pseudo-resource routes to generate restful routes, minus some exceptions. The announcement: http://www.facebook.com/developers/message.php#msg_126 Patch is submitted here: http://rubyforge.org/tracker/index.php?func=detail&aid=16105&group_id=4187&atid=16132 Blog entry about it:
2006 Aug 06
2
Acts as Most Popular plugin
Make your models feel like they are in high school again. This plugin retrieves the most frequently occurring values for each column. It adds methods of the form most_popular_[pluralized_column_name]. Check out <http://shanesbrain.net/articles/2006/08/04/acts-as-most-popular-rails-plugin> for sample usage. The plugin is mostly just a group_by in disguise. It is probably overkill if you