similar to: Dynamic Paths

Displaying 20 results from an estimated 4000 matches similar to: "Dynamic Paths"

2010 Apr 02
6
App_Controller and partial issues with has_many through
I have a User model, a Post model, and an Interest model: User has_many posts through interests User has_many interests, dependent destroy Post has_many users through interests has_many interests, dependent destroy Post has_many interests Interest belongs to Post Interest belongs to User Application_Controller is as follows: class ApplicationController < ActionController::Base before_filter
2006 Jul 04
8
writing to many_to_many table
I have three tables. users, posts, users_posts. This last one is to mark a post as read. How do I write to the users_post table? Here''s what I have: In model ''User_Post'' belongs_to :post belongs_to :user In post/view/show: <%= link_to "Mark As Read", :controller => ''post'', :action => ''post_read'', :user =>
2006 Jun 08
5
Displaying Calculation on Index
Hi, I am trying to create a simple point system and display the total on my index page. So I have my db basically setup like this: Posts id, body, created_at, user_id Post_points id, post_id, user_id, created_at, value So as you can see I am allowing other users to create points on the post and my db will store who gave the point as well. "value" is the point value which can
2009 Apr 15
2
Getting Started with Rails - post_comment_url
Hi, Thanks for a wonderful Getting Started with Rails. I am up to the last section and just added the comments part. So while testing and looking over comments_controller.rb; I see the reference to post_comment_url calll where is this defined. Below is the message I am getting. Thanks ActionController::RoutingError (post_comment_url failed to generate from {:post_id=>#<Post id: 1, name:
2009 Oct 05
4
Friendly_id and Rake problem.
Hello there, The plugin friendly_id (http://github.com/norman/friendly_id) has rake tasks that you can call. I''m using this plugin as a gem. I''m trying this: rake friendly_id:make_slugs MODEL=Post and it is rising this error: Don''t know how to build task ''friendly_id:make_slugs'' So the question is: how do I call a gem''s rake task? David
2011 Apr 18
2
acts_as_commentable validations
Hi all, I recently started back up with Rails and things are going well up until now. I''ve set up acts_as_commentable in my Post model and it''s working great. Problem is users are able to create a "blank" comment. I''ve added the following validations in the comment.rb file generated by acts_as_commentable to limit the comment length: [code]
2024 Aug 19
1
Can't join new samba dc to existing dc
On Mon, 19 Aug 2024 15:40:15 +0700 fransnicho via samba <samba at lists.samba.org> wrote: > Hi Rowland, > Thanks for your response ? > > If I succesfully upgrade DC4 (the karoshi samba package) to samba > 4.20, is there any posibilities that i can join the new samba machine > (DC6) to the DC4 ? Possibly, try it. > If I rebuild new machine, what data will be lost
2006 May 05
1
Help with ActiveRecord
Model: class AdminQueue < ActiveRecord::Base set_table_name ''adminqueue'' end Interacting with it in script/console >> AdminQueue.new => #<AdminQueue:0x240a910 @attributes={"topic_id"=>nil, "resolved"=>nil, "updated_on"=>nil, "action"=>nil, "type"=>nil, "post_id"=>nil,
2011 Apr 19
1
RSpec/Webrat Checking output is properly escaped
I want to test that the JSON response from a create action is sanitized properly, but rspec or webrat appears to be parsing the output into proper HTML chars instead of escaped characters. I have verified that it escapes properly in the regular browser json response. The relevant RSpec test code is: include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper it
2024 Aug 15
2
Can't join new samba dc to existing dc
On Thu, Aug 15, 2024, 10:35 fransnicho <fransnicho at gmail.com> wrote: > Pada Rab, 14 Agu 2024 pukul 23.21 Rowland Penny via samba < > samba at lists.samba.org> menulis: > >> On Wed, 14 Aug 2024 16:58:12 +0700 >> fransnicho via samba <samba at lists.samba.org> wrote: >> >> > I can not join an additional new samba dc ver. 4.19.5 to an existing
2009 Apr 18
1
RESTful Routing: Getting names of resources out of paths
Hello - I''m trying to remain RESTful in a new application that I''m building, but I''m not sure how to get the routes that I want. I''m trying to avoid having resource names like "posts" and "comments" cluttering things up. For example, for a resource that I designate: GET example.com -> index GET example.com/1 -> show, id=1 GET
2024 Aug 18
1
Can't join new samba dc to existing dc
On Sat, 17 Aug 2024 16:21:14 +0700 fransnicho via samba <samba at lists.samba.org> wrote: > Hi Rowland, > Thanks for your response > > Is it ok to have 2 records on the > CN=DC4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=nicho,DC=com > ? Yes > > 20.04 comes with Samba 4.15.13, so where did you get the 4.19.5 > packages from ? > deb
2024 Aug 15
1
Can't join new samba dc to existing dc
Pada Rab, 14 Agu 2024 pukul 23.21 Rowland Penny via samba < samba at lists.samba.org> menulis: > On Wed, 14 Aug 2024 16:58:12 +0700 > fransnicho via samba <samba at lists.samba.org> wrote: > > > I can not join an additional new samba dc ver. 4.19.5 to an existing > > samba Ad version 4.19.5 functional level 2008 R2. > > > > Last week I successfully
2011 Oct 11
10
Create Two objects at the same time
I have user model and referral model. Referral model has user_id as field. Now when a new user is created, I need to call referral#create as well and pass it the id of the newly generated user to user_id of referral model. How can I do that. -- 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
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here: http://railsforum.com/viewtopic.php?pid=25439#p25439 Don''t think it would be required to completely re-type it here :) Thanks! -- -Daniel Fischer http://danielfischer.com - Geek Blog http://abigfisch.com - Portfolio http://writersbeat.com - Writing Community
2024 Aug 14
1
Can't join new samba dc to existing dc
On Wed, 14 Aug 2024 16:58:12 +0700 fransnicho via samba <samba at lists.samba.org> wrote: > I can not join an additional new samba dc ver. 4.19.5 to an existing > samba Ad version 4.19.5 functional level 2008 R2. > > Last week I successfully demote an offline dc3 and move the fsmo role > /var/log/samba/log.samba > > > 16:34:51.368927, 0] >
2024 Aug 18
1
Can't join new samba dc to existing dc
On Sun, 18 Aug 2024 22:21:02 +0700 fransnicho via samba <samba at lists.samba.org> wrote: > > it at dc4:~$ sudo dpkg -l | grep -E > 'samba|winbind|krb5|smbclient|acl|attr|bind9' > ii acl 2.2.53-6 > > amd64 access control > list - utilities > ii attr
2024 Aug 18
1
Can't join new samba dc to existing dc
Pada Min, 18 Agu 2024 pukul 16.38 Rowland Penny via samba < samba at lists.samba.org> menulis: > On Sat, 17 Aug 2024 16:21:14 +0700 > fransnicho via samba <samba at lists.samba.org> wrote: > > Hi Rowland, > > Thanks for your response > > > > Is it ok to have 2 records on the > > >
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
I have this strange behavior and I don''t undertand why. Here is the thing: I have this record in my payment model: 1.9.3p286 :019 > u.payment.last Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10 => [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date:
2011 Aug 04
3
#create tests fail when I add FriendlyId to my model
I am doing controller testing, and I can''t seem to get the create method test to pass when friendly_id is added to the mix. If I comment it out of the model, the tests all pass perfectly. The moment I add it back in, the error looks like this: 1) Error: test_create_valid(BrandsControllerTest): FriendlyId::BlankError: FriendlyId::BlankError