Thursday, October 1, 2015 at 11:31:30 PM UTC-7, walt wrote:
>
> Fail to see the use case Faisal - plz elaborate - and keep in mind that
>
> Article.where id: [1,2,3,4,5,6,7,8,9,10,11, . . . , 2100]
>
> would generate one heck of a parameterized array ;)
>
>
> > Den 02/
Activerecord generates parameterized queries for basic types, but, it does
parameterize array types.
E.g.
Article.where(id: 1)
# generates
# SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 [["id", 1]]
But,
Article.where(id: [1,2])
# generates
# SELECT "articles".* FROM "arti
tart_thread'
Rendered
/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
(1.3ms)
Rendered
/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/r
https://github.com/Faisal-Hassan/vzncommerce
The link above is the link to my project. I'm trying to pull up 3 products
from the database to show up on the index page in a carousel. The index
page comes up as blank. How can I fix this? Thanks.
--
You received this message because yo
Thank you again Fred, I will try to solve the problem and see whether
it is a collection or an individual object.
Again thank you for your help, I really appropriate it.
Cheers,
Fiz
On Apr 25, 12:34 am, Frederick Cheung
wrote:
> On Apr 24, 4:04 pm, fAisAl wrote:> Thanks Fred for
> y
"objectid" in database.
The error I used to get is concern not finding id attribute in table.
Is it possible to be the problem that I did not follow Activerecord
conventions.
Cheers,
Fiz
On Apr 24, 11:39 pm, Frederick Cheung
wrote:
> On Apr 24, 3:21 pm, fAisAl wrote:
>
> >
Hi all,
I am now able to create, update and list object from oracle database
(local XE) without any problems. But the destroy method is not
working.
It is given me this error
undefined method `destroy' for #
I am using
ruby 1.8.7
rails 2.3.11
activerecord-oracle-adapter
ruby-oci8 1.0.6
Is there s
Thank you for you help Bryan, I am very satisfied by our answer.
I will try to tell my host that to upgrade their environment.
Thank for all who tried to help and also thanks for Fred for early
answer.
Cheers all,
Faisal
On Apr 10, 12:25 am, Bryan Crossland wrote:
> On Sat, Apr 9, 2011 at 2
Thank you Fred for your suggestion. I might leave that at end when no
other available solutions.
Faisal
On Apr 9, 3:44 pm, Frederick Cheung
wrote:
> On 9 Apr 2011, at 07:19, fAisAl wrote:
>
> > Thank you Fred,
> > Yes I could have used that, but as a requirement from host,
Thank you Fred,
Yes I could have used that, but as a requirement from host, I must use
the old adapter not the enhanced one.
Cheers,
Faisal
On Apr 9, 3:13 pm, Frederick Cheung
wrote:
> On 9 Apr 2011, at 03:11, fAisAl wrote:
>
> > Hi all,
> > I have been struggling with this p
irst part of the errors:
NoMethodError: undefined method `primary_key' for
#
It is very long message, sorry about that.
Please help, I searched for a solution but with no luck.
any help will be appreciated.
Cheers,
Faisal
--
You received this message because you are subscribed to the Goo
Colin Law wrote:
> On 28 September 2010 10:05, Faisal Basha wrote:
>
> Please don't top post, it makes it difficult to follow the thread
>
>> hi, Yes the below code is what I have i.e update method in
>
> Presumably the 'yes' is in response to Fred
bel :email%>
<%= form.text_field :email %>
<%= submit_tag "save changes" %>
<% end %>
<%= link_to 'Back', {:action => 'list'} %>
Thanks
Frederick Cheung wrote:
> On Sep 28, 6:02�am, Faisal Basha wrote:
>> Hey guys
Hey guys,
Here's an error I get after I hit the submit button on the editing
page:
NameError in ClassifiedsController#update
uninitialized constant ClassifiedsController
Help would be appreciated.
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
k fixed that
now the error after I hit submit button after editing:
NameError in ClassifiedsController#update
uninitialized constant ClassifiedsController
Help would be appreciated.
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed t
Sorry my bad.please discard the above post, the error was
with the syntax, but now the error I have now is:
Showing app/views/classified/edit.rhtml where line #2 raised:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
1: Editing Classified:
hey guys...long time
I got too busy with my work...my apologies..
I tried the above code I still get errors:
compile error
/Users/alihan/classifieds/app/views/classified/edit.rhtml:5: syntax
error, unexpected '>'
/Users/alihan/classifieds/app/views/classified/edit.rhtml:10: syntax
error, unexp
sorry guys,
I made a typo error while posting it here. The show.rhtml file is
actually
named edit.rhtml, I do have another file that is show.rhtml which
renders
the html file. so what I really have is
Update function in the controller looks like:
def update
@classifed = Classified.find(param
Iam trying to build a classified site, I've created the code to
add,edit,delete posts. I am facing trouble with the edit part. When I
click the edit link for a post it shows the form with all the
textfields,after entering in all the fields and clicking the save
changes button, Iam getting the erro
Hassan Schroeder wrote:
> On Wed, May 12, 2010 at 6:36 AM, Faisal Basha
> wrote:
>
>> unknown0011248da679:~/hello faisal$ which ruby
>> /usr/bin/ruby
>> unknown0011248da679:~/hello faisal$ ruby -S gem -v
>> /usr/local/bin/gem:8:in `require': No such file
Hassan Schroeder wrote:
> On Wed, May 12, 2010 at 6:12 AM, Faisal Basha
> wrote:
>
>>>> unknown0011248da679:~/hello faisal$ ruby script/server
>>>> Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again:
>
>> k this is wat i did
&g
Colin Law wrote:
> On 12 May 2010 13:48, Faisal Basha wrote:
>> I had fixed the below error long time back...and now it's back
>> again...
>> I have no clue how it happenedhelp �would be appreciated thanks
>>
>> unknown0011248da679:~/hello faisal
I had fixed the below error long time back...and now it's back
again...
I have no clue how it happenedhelp would be appreciated thanks
unknown0011248da679:~/hello faisal$ ruby script/server
Rails requires RubyGems >= 1.3.2. Please install RubyGems and try aga
Hassan Schroeder wrote:
> On Fri, Mar 12, 2010 at 9:08 AM, Faisal Basha
> wrote:
>
>> I've checked the paths in both the .bash_login and .bash_profile
>>
>> .bash_login
>> export PATH=$PATH:/usr/local/bin:/usr/local/mysql/bin:$PATH
>
> That's
Hassan Schroeder wrote:
> On Fri, Mar 12, 2010 at 7:44 AM, Faisal Basha
> wrote:
>
>> unknown0011248da679:~/example faisal$ ruby script/about
>> Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again:
>> http://rubygems.rubyforge.org
>
>
Hassan Schroeder wrote:
> On Thu, Mar 11, 2010 at 10:18 PM, Faisal Basha
> wrote:
>
>> unknown0011248da679:~/example faisal$ ruby script/server
>> Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again:
>> http://rubygems.rubyforge.org
>>
>
Hassan Schroeder wrote:
> On Wed, Mar 10, 2010 at 11:38 AM, Faisal Basha
> wrote:
>
> Mostly that looks good; the only thing that strikes me right off is
> the discrepancy between your reported gem version and that of
> the rubygems-update.
>
>> unknown001
Hassan Schroeder wrote:
> On Wed, Mar 10, 2010 at 3:55 AM, Faisal Basha
> wrote:
>> rails expense
>> /usr/local/bin/rails:19: undefined method `bin_path' for Gem:Module
>> (NoMethodError).
>>
>> I keep getting the above error after installing rails.
>
%>rails expense
/usr/local/bin/rails:19: undefined method `bin_path' for Gem:Module
(NoMethodError).
I keep getting the above error after installing rails. I have gone
through every
step at hivelogic. It worked once and ever since I have been getting the
above error.
I understand the issue is tha
rails expense
/usr/local/bin/rails:19: undefined method `bin_path' for Gem:Module
(NoMethodError).
I keep getting the above error after installing rails. I have gone
through every
step at hivelogic. It worked once and ever since I have been getting the
above error.
I understand the issue is that
30 matches
Mail list logo