[Rails] sanjib dhar wants to chat

2009-12-07 Thread sanjib dhar
--- sanjib dhar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-c6b0b759dc-c292a80d76-018225cdc3827587 You'll need to click

Re: [Rails] Re: accepts_nested_attributes_for + paperclip + polymorphic + problem

2009-12-07 Thread Abhishek shukla
antony thanks. It worked,. On Mon, Dec 7, 2009 at 6:11 PM, Antony Sastre wrote: > > Hi Ab, > > The form view should read: > > <% form_for @office, :html => {:multipart => true} do |f| %> > > This is always the case when dealing with file uploads. > > > On Dec 7, 9:05 am, Abhishek shukla wrote:

[Rails] Re: remote_function - how to include a id of current model

2009-12-07 Thread sami
when you use remote_function the :with option actually expect javascript code. in your code remote_function helper is assuming "word_id + '=' + # {word.id}" is a javascript code. so you can do any of the following two things :with=> "'word_id='+document.getElementById('word_id').value" where wor

Re: [Rails] Order of Join table

2009-12-07 Thread Rilindo Foster
No, just: > weburls_platforms with 'platform_id' and 'weburl_id' fields On Dec 7, 2009, at 9:41 PM, Conrad Taylor wrote: > On Mon, Dec 7, 2009 at 4:35 PM, Rilindo Foster wrote: > That was fun. > > Due to some mix-up, I ended up having to rename my models. At any event, I > managed to fix

Re: [Rails] Order of Join table

2009-12-07 Thread Conrad Taylor
On Mon, Dec 7, 2009 at 4:35 PM, Rilindo Foster wrote: > That was fun. > > Due to some mix-up, I ended up having to rename my models. At any event, I > managed to fix everything, except that I kept getting this message when I > attempted to delete an entry: > > > ActiveRecord::StatementInvalid (My

[Rails] Re: Silent Touch on Active Records

2009-12-07 Thread tankwanghow
Sorry I forgot to tell that I am using a dynamic multi-models form. Using javascript to add and remove Invoice_Items. Then submit the Invoice, and Invoice_Items the once. These resulted STALE error being raise because every invoice_item that was change, It will :touch the invoice record cause l

Re: [Rails] Re: Route error to Admin namespace

2009-12-07 Thread Paulo Coutinho
Hi. Im already try it, but no sucess. My controllers is not restfull. 2009/12/7 Freddy Andersen > This works fine for me in jruby: > > map.namespace(:admin) do |admin| > admin.resources :clients > admin.resources :options, :has_many => :widgets > end > > Does this not work? > > Make sure i

[Rails] invalid pointer in libxml xmlFreeNodeList

2009-12-07 Thread Simon Macneall
Hi, Not sure if there is a better place to post this. The libxml-ruby mailing list doesn't have much activity. We are getting occasional errors on our production box, that I can't duplicate in testing. It's not even reproducible on the production box with the same inputs, but I've managed to

[Rails] Re: need help for functional testing

2009-12-07 Thread sanjanad
> require File.dirname(__FILE__) + '/../test_helper' class BooksControllerTest < ActionController::TestCase def setup @controller = BooksController.new @request= ActionController::TestRequest.new @response = ActionController::TestResponse.new login_as :sanj end fixture

[Rails] testing errors!!

2009-12-07 Thread sanjanad
def test_create num_articles = Article.count post :create, :article => {} assert_response :redirect assert_redirected_to :action => 'list' assert_equal num_articles + 1, Article.count end def test_edit get :edit, :id => 1 assert_response :success assert_templa

[Rails] Order of Join table

2009-12-07 Thread Rilindo Foster
That was fun. Due to some mix-up, I ended up having to rename my models. At any event, I managed to fix everything, except that I kept getting this message when I attempted to delete an entry: ActiveRecord::StatementInvalid (Mysql::Error: Table 'development.platforms_weburls' doesn't exist: S

Re: [Rails] how to understand Ruby/Rails code? (noting various mixins/includes) Is there a tool to assist here?

2009-12-07 Thread Hassan Schroeder
On Mon, Dec 7, 2009 at 2:53 PM, greghauptmann wrote: > Every rails app / gem / plugin I download the code for I seem to spend > a good deal of time trying to make sense of the code due to the way > Rails / Ruby is very dynamic. > QUESTION 1: Is there a tool that could assist here? I've had goo

[Rails] Re: is it ok if i define my login_as in test_helper.rb ???

2009-12-07 Thread sanjanad
thank u so much kristian :) :) i ve been trying to figure this out from a long time..thanks :) On Dec 5, 12:52 am, Kristian Hellquist wrote: > In test_helper.rb you usually put all the global methods and data > required, so it looks typically fine to me. > > Kristian Hellquist > > 09/12/5 sanjana

[Rails] assert_redirected help

2009-12-07 Thread sanjanad
assert_redirected_to category_path(assigns(:category)) this line for example..when i use it in my code def test_should_create_category login_as :admin assert_difference Category, :count, 1 do post :create, :category => { } end assert_redirected_to category_path(assigns(:cate

Re: [Rails] routing requirements quick question

2009-12-07 Thread Rob Biedenharn
On Dec 7, 2009, at 2:56 PM, Clarice wrote: > Hi everyone, first e-mail here :) > > I have the following in my routes.rb file. > > map.connect 'posts/index/:page', >:controller => 'posts', >:action => 'index', >:requirements => {:page => /\d+/ }, >:pa

Re: [Rails] creating search form without Javascript

2009-12-07 Thread Hassan Schroeder
On Sat, Dec 5, 2009 at 7:52 PM, ct9a wrote: >  I'm trying to develop a search functionality in my application that > caters to the non-Javascript crowd of users. > Not wanting to use Javascript, > > 1) can anyone tell me how to JavaScript. > 2) does anyone know how to JavaScript. You're desc

[Rails] Re: captcha

2009-12-07 Thread RubyonRails_newbie
Cool - thanks, I'll check these out. Cheers. On 7 Dec, 22:59, Rick wrote: > captcha hasn't had any activity since Feb 2007, recaptcha shows work > this year. >    http://github.com/ambethia/recaptcha > > You might also check out the thorny_form plugin: >    http://www.logilogi.org/pub/doc/plugin

[Rails] Re: Route error to Admin namespace

2009-12-07 Thread Freddy Andersen
This works fine for me in jruby: map.namespace(:admin) do |admin| admin.resources :clients admin.resources :options, :has_many => :widgets end Does this not work? Make sure its above the default routes... -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] Re: creating search form without Javascript

2009-12-07 Thread ct9a
hello? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options,

[Rails] Re: captcha

2009-12-07 Thread Rick
captcha hasn't had any activity since Feb 2007, recaptcha shows work this year. http://github.com/ambethia/recaptcha You might also check out the thorny_form plugin: http://www.logilogi.org/pub/doc/plugins/thorny_form/ http://agilewebdevelopment.com/plugins/thorny_form http://nedbatche

[Rails] how to understand Ruby/Rails code? (noting various mixins/includes) Is there a tool to assist here?

2009-12-07 Thread greghauptmann
Hi all, Every rails app / gem / plugin I download the code for I seem to spend a good deal of time trying to make sense of the code due to the way Rails / Ruby is very dynamic. There are various code files that are really just ready to be "mixed in" to other files (e.g. with the class methods & i

Re: [Rails] Route error to Admin namespace

2009-12-07 Thread Paulo Coutinho
I make a solution that work fine to me, but i have to create one for each controller: # clients map.admin_clients '/admin/clients/:action/:id', :controller => '/admin/clients' ... 2009/12/7 Paulo Coutinho > Hum. Ok. > > The last solution doesn't work, so i think that i'll have to make a rout

Re: [Rails] Route error to Admin namespace

2009-12-07 Thread Paulo Coutinho
Hum. Ok. The last solution doesn't work, so i think that i'll have to make a route to each controller :( Do you make one route by controller? Can you post an example about how i can redirect all from "admin/clients" to correct controller/action/id ? 2009/12/7 Kristian Hellquist > > But my s

Re: [Rails] captcha

2009-12-07 Thread Jason Roelofs
eOn Mon, Dec 7, 2009 at 4:14 PM, RubyonRails_newbie < craigwest...@googlemail.com> wrote: > Hi all, > > I want to implement a captcha on my register page to help weed out any > 'non-human' visitors. > > I was told to check out http://expressica.com/simple_captcha/ but the > site isnt responding. >

[Rails] captcha

2009-12-07 Thread RubyonRails_newbie
Hi all, I want to implement a captcha on my register page to help weed out any 'non-human' visitors. I was told to check out http://expressica.com/simple_captcha/ but the site isnt responding. Does anyone have any other reccomendations that are tried and tested & successful? Many Thanks -- Yo

Re: [Rails] Route error to Admin namespace

2009-12-07 Thread Kristian Hellquist
> But my system is an ERP, i have more than 20 controllers. > > I have to make it for all controllers and actions? I have an application with something like 20 controllers and make all routes explicit for each controller. > > My actions is in portuguese, not "edit" but "alterar"... i put here an

[Rails] routing requirements quick question

2009-12-07 Thread Clarice
Hi everyone, first e-mail here :) I have the following in my routes.rb file. map.connect 'posts/index/:page', :controller => 'posts', :action => 'index', :requirements => {:page => /\d+/ }, :page => nil end Does :requirements => {:page => /\d+/ } m

Re: [Rails] Route error to Admin namespace

2009-12-07 Thread Paulo Coutinho
Hi. But my system is an ERP, i have more than 20 controllers. I have to make it for all controllers and actions? My actions is in portuguese, not "edit" but "alterar"... i put here an example of my structure. Dont have other method? A route that redirect all with "admin/" to "admin/:controller/

[Rails] Re: hpricot on mac os 10.6

2009-12-07 Thread Frederick Cheung
On Dec 7, 2:33 am, timr wrote: > Could anyone help me get hpricot working on mac os 10.6.2 (ruby > version 1.9.2)? > > Example install is provided. The hpricot_scan bundle is apparently not > the correct architecture. I don't know what to do about that since I > tried providing the architecture

Re: [Rails] Re: Problem with activesupport version

2009-12-07 Thread Srdan Dukic
2009/12/4 Matt Jones > Why is Rails 2.1.0 frozen in /home/srdan/rails/authlogic_example/ > vendor/rails? That's what's causing the problem. The error is caused > by authlogic specifying a dependency on activesupport, which wasn't > properly stubbed in the gem index back in 2.1.0 (see > https://ra

[Rails] Re: hpricot on mac os 10.6

2009-12-07 Thread Rick
Not sure about why-hpricot but hpricot (0.8.2) runs under ruby 1.9.2 $ ruby --version ruby 1.9.2dev (2009-10-18 trunk 25393) [powerpc-darwin9.8.0] As you can see from the above, I'm running ppc / osx 10.5.8 so no guidance specific to intel/10.6. You might try ...gem install hpricot Also, don't

Re: [Rails] remote_function - how to include a id of current model

2009-12-07 Thread Frederick Cheung
On 7 Dec 2009, at 16:39, analogue40 wrote: > Hi all, > > Hope someone can help me out with this weird problem, I'm sure it's > something simple. > > All I want to do is send the ID of the current model from the view > into the controller via a remote_function call > > basiclaly I'm adding a wo

[Rails] Re: Secure receipt generation

2009-12-07 Thread icke
This seems to have done the trick. class DocumentController < ApplicationController def show fingerprint = params[:id] if doc = Document.find_by_fingerprint(fingerprint) render :file => doc.filepath, :content_type => content_type (doc.filename) else raise ArgumentError,

[Rails] Re: setting response.headers is non-effective?

2009-12-07 Thread CoolAJ86
> Use = for assignment, not == Thank you! What I needed was a fresh set of eyes! -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, sen

[Rails] remote_function - how to include a id of current model

2009-12-07 Thread analogue40
Hi all, Hope someone can help me out with this weird problem, I'm sure it's something simple. All I want to do is send the ID of the current model from the view into the controller via a remote_function call basiclaly I'm adding a word to a list using a check box: check_box_tag "list_ids[]", li

Re: [Rails] Re: link_to_function or button_to_function memory usage

2009-12-07 Thread Chris Habgood
It is all ajax and it never complete out. It looks like it is in a loop generating each partial over and over again. when it finally times out it says it cannot allocate memory. Is there any way around this so I do not have to make ajax calls for those 2 actions as it is not really necessary? O

[Rails] Re: link_to_function or button_to_function memory usage

2009-12-07 Thread Frederick Cheung
On Dec 7, 4:28 pm, Me wrote: > ok maybe not enough detail. > > When a user selects a person from a drop down selection  it shows the > user below with 2 options, to edit the user or delete the user > > <%= link_to_function 'Edit Contact' do |page| >    page[:showcontact].replace_html :partial =>

Re: [Rails] problem starting rails (hobo) app with passenger

2009-12-07 Thread Norm Scherer
Edward Samokhvalov wrote: ... Application root: /home/es-server/employee_status The application root is supposed to be the 'public' directory of app.  I would assume it should be /home/es-server/employee_status/public -- You received this message because you are subscribed to t

[Rails] Re: link_to_function or button_to_function memory usage

2009-12-07 Thread Me
ok maybe not enough detail. When a user selects a person from a drop down selection it shows the user below with 2 options, to edit the user or delete the user <%= link_to_function 'Edit Contact' do |page| page[:showcontact].replace_html :partial => '/contacts/ ajaxshoweditcontact' end %> I

[Rails] Re: setting response.headers is non-effective?

2009-12-07 Thread Frederick Cheung
On Dec 7, 2:52 pm, Rick wrote: > Both Ruby and C use the == operator to test that the rvalue equals the > lvalue, as in:  this_email_message == pedantic > > Ruby uses both = and => as assignment operators, depending on the > situation.  Of course this prompts the student to ask, are two > assign

[Rails] Re: Downloading Ruby on Rails guides for offline use?

2009-12-07 Thread Frederick Cheung
On Dec 7, 3:21 pm, T_P wrote: > Hi! > > The guides onhttp://guides.rubyonrails.org/are masterpieces. Is > there a convenient way to download all of them for off-line use? > You should be able to generate them yourself - run rake doc:guides from a rails app (it should put the output in doc/guide

[Rails] Downloading Ruby on Rails guides for offline use?

2009-12-07 Thread T_P
Hi! The guides on http://guides.rubyonrails.org/ are masterpieces. Is there a convenient way to download all of them for off-line use? Tuo -- 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 rubyonrails-

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread T_P
Oh yes, it possible to use Postgresql with the BitNami package. But the downside is that you still end up having MySQL around. :-/ First you install the BitNami Rubystack with MySQL, then you use Postgresql add-on. Tuo -- You received this message because you are subscribed to the Google Groups

[Rails] Re: setting response.headers is non-effective?

2009-12-07 Thread Rick
Both Ruby and C use the == operator to test that the rvalue equals the lvalue, as in: this_email_message == pedantic Ruby uses both = and => as assignment operators, depending on the situation. Of course this prompts the student to ask, are two assignment operators enough? On Dec 7, 3:48 am, Da

[Rails] view to pdf with pdf::writer

2009-12-07 Thread isabel
Hello, I would like to send a view to a pdf file. To do that I have choosen the tool "pdf::writer", I have tested it and I found a problem when I do: pdf.text render :layout => "my_layout" it sends the whole html code to the pdf file. How could I send the result of the html file to

[Rails] Re: Business logic against model records

2009-12-07 Thread Andrew Edwards
I had be contemplating a STI solution but it still involved account types in the database. I can see a number of problems being solved with your suggestion, hadn't thought of it this way. My initial thought though is that potentially there are around 10-15 account types, would this start to look u

[Rails] Re: Ann: ArEvents

2009-12-07 Thread Raphael Bauduin
Just added the possibility to ignore events permanently: ArEventComment.ignore_ar_events(:before_create) #some code ArEventComment.ignore_ar_events(:before_create) or with a block of code: ArEventComment.ignore_ar_events(:before_create) do #some co

[Rails] Re: Business logic against model records

2009-12-07 Thread Clemens
possibly a case for Single Table Inheritance(STI)? class InventoryAccount < AR::Base belongs_to :product belongs_to :storage_location has_many :inventory_account_entries # common inventory account behaviour, possibly making use of # template method pattern end class AvailableInvetoryAc

[Rails] Business logic against model records

2009-12-07 Thread Andrew Edwards
Hi, I have a small architectural decision to make. I'm modeling double entry accounts to handle product inventory. An account is a combination of a product, storage location. Accounts also have sub-types such as "Available" and "Reserved". Therefore it is possible to have more than one account f

[Rails] Re: Problem installing RoR Ubuntu 9.04 - SOLVED.

2009-12-07 Thread LuisRuby
Hi friends! My problem has gone! With a little shame because it's so easy... :-). I received a tip to put "PATH=/var/lib/gems/1.8/bin:$PATH" in my file .profile with gedit. And all goes well! Thank you to everybody! On Dec 7, 10:11 am, LuisRuby wrote: > H, thank you. But I saw that BitNami in

[Rails] Re: accepts_nested_attributes_for + paperclip + polymorphic + problem

2009-12-07 Thread Antony Sastre
Hi Ab, The form view should read: <% form_for @office, :html => {:multipart => true} do |f| %> This is always the case when dealing with file uploads. On Dec 7, 9:05 am, Abhishek shukla wrote: > Hello Friends, > > I am not able to retrieve the value form page > > controller >   offices_contr

Re: [Rails] Secure receipt generation

2009-12-07 Thread Niels Meersschaert
Why not just scope the find to the user? class User has_many :receipts end Then in your controller you can do something like def show file_ref = current_user.receipts.find(params[:id]) #Read file code end On Dec 7, 2009, at 7:43 AM, icke wrote: > Has anyone got any ideas on how to approach t

[Rails] Secure receipt generation

2009-12-07 Thread icke
Has anyone got any ideas on how to approach the following: I generate a pdf receipt and store it in a directory "outside" of public since I do not want users to be able to just mess about with URLs and look at other users receipts. However, I do want users to be able to download and see their own

Re: [Rails] Re: hiding specific links

2009-12-07 Thread Colin Law
2009/12/6 RubyonRails_newbie : > ** Resolved... ** > > If anyone else comes across a similar issue, I did this to hide the > delete link if no posts exist: > >        <% if Post.exists?(@posts) %> > > >        <%= image_tag ("delete.png") %> > >                <%= link_to "Delete post", >          

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread LuisRuby
H, thank you. But I saw that BitNami install Mysql and PHP. Well, I thought to use Firebird but it is more probable that I will use Postgre and RoR. Is it possible? On Dec 7, 7:34 am, T_P wrote: > Hi, Luiz! > > I had the same problem as you. Namely, I struggled with installing RoR > developm

[Rails] Re: Cucumber and general Ruby question

2009-12-07 Thread Clemens
you could use tables feature: ... Given the site has the following pages |page title| | title 1 | | title 2 | | title 3 | ...steps.rb: ... Given /^the site has the following pages$/ do | pages | pages.each |page_title| Page.create :title => pa

[Rails] Re: Why do so many Ruby/Rails developers use Macs?

2009-12-07 Thread aldo.nievas
I bought a Macbook Pro from Argentina by u$2200 through megadistributors.com Just only u$300 more than US. And they delivered it at your door home. And why Mac for Rail development ? Did you use combination Mac + Texmate ? It's awesome. DHH and his team were developed Rails using that combination

Re: [Rails] Route error to Admin namespace

2009-12-07 Thread Kristian Hellquist
2009/12/6 Paulo Coutinho : > Hi. > > Your solution dont solve. > > But i try it: > > map.with_options(:namespace => "admin") do |admin| >   admin.clients_index 'admin/clients', :controller => 'clients' #im on > admin so dont need redirect to "admin/clients" only "clients" > end > > And to the i

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread T_P
Hi, Luiz! I had the same problem as you. Namely, I struggled with installing RoR development environment on my Ubuntu box. I found a nice and EASY solution: use BitNami RubyStack, which is available at http://bitnami.org/stack/rubystack. Everything is included, and it works out of the box. I highl

Re: [Rails] Where do I set Custom Headers as default?

2009-12-07 Thread Peter De Berdt
On 07 Dec 2009, at 03:45, CoolAJ86 wrote: > I would like to change the default headers which are sent out to > include these CORS headers: > > Access-Control-Allow-Origin: * > Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS > Access-Control-Allow-Headers: X-PINGOTHER > Content-Type:

[Rails] Cucumber and general Ruby question

2009-12-07 Thread Gintautas Šimkus
Hello, I have this cucumber step definition: Given /^the site has pages "(.+)" and "(.+)"$/ do | page_1, page_2 | Page.create :title => page_1 if Page.find_by_title(page_1).nil? Page.create :title => page_2 if Page.find_by_title(page_2).nil? end This works, but obviously I would like to

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread LuisRuby
OK, this is the result: gem env - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - GEMS PATHS: - /var/lib/gems/1.8 - /ho

[Rails] Ubuntu + RoR + Firebird OR Ubuntu + RoR + PostgreSQL ?

2009-12-07 Thread LuisRuby
Dear friends, I am starting to build a system for an university using RoR. I would like to use Firebird because I worked with it for a long time and I love it! In this new project I will use a lot of stored procedures, data referential integrity and so on. But when I looked for the Firebird adapter

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread rtacconi
Usually when you export the path it should work. Check again that the path corresponds to the gems path where you have the Rails gem. You can use this command: gem env to gather more info about the gem environment and you should be able to see the GEM_PATH, so check if in that path you have the R

Re: [Rails] Re: Starting server is failing on Mac OSX 10.6 Snow Leopard

2009-12-07 Thread Conrad Taylor
On Sun, Dec 6, 2009 at 6:28 PM, timr wrote: > I need help getting hpricot running on mac OS 10.6.2, ruby 1.9.1. > Others have had the same problem apparently no answer has been posted. > It seems that the gem install is not compiling one of the bundle files > with the correct architecture. I am a

[Rails] problem starting rails (hobo) app with passenger

2009-12-07 Thread Edward Samokhvalov
Dear All! I've set up my apache, passenger and configs, the passenger works, but the app can't be started. the erros are the following These are the possible causes: * There may be a syntax error in the application's code. Please check for such errors and fix them. * A requir

Re: [Rails] Re: Starting server is failing on Mac OSX 10.6 Snow Leopard

2009-12-07 Thread Conrad Taylor
On Fri, Oct 30, 2009 at 9:01 AM, Kurt wrote: > > I am still running into this issue even after reinstalling hpricot > under Snow Leopard. When I require 'hpricot' I get this error: > >/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/ > hpricot_scan.bundle: mach-o, but wrong architectur

[Rails] Re: Problem installing RoR Ubuntu 9.04

2009-12-07 Thread LuisRuby
OK but... I forgot to ask... before any try to solve my problem, I think I have to uninstall RoR and then reinstall. How to do that? I found something but as I'm a novice, it's difficult to choose a path. Thank you for all that gently replied! On Dec 6, 2:35 pm, Dhruva Sagar wrote: > Hi, > > Foll

Re: [Rails] setting response.headers is non-effective?

2009-12-07 Thread Dave English
In message , CoolAJ86 writes >As far as I know, this should append these headers to the response >from Rails no matter what, right? > >I've checked in Fierbug in Fierfox 3.5.5 and I only see my usual >headers. What might be getting in the way? Because this is Ruby, not C? Use = for assignment,

[Rails] accepts_nested_attributes_for + paperclip + polymorphic + problem

2009-12-07 Thread Abhishek shukla
Hello Friends, I am not able to retrieve the value form page controller offices_controller def new @office = Office.new end def create @office = Office.new(params[:office]) @office.save end end VIEW <% form_for @office do |f| %> <%= f.text_area :office_na